Skip to content

Commit

Permalink
cut prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Merz committed Nov 20, 2023
1 parent 1f1fdac commit 2212c6b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions plugins/single-instance/src/platform_impl/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@ fn fifo_path(config: Arc<Config>) -> PathBuf {
.identifier
.replace(['.', '-'].as_ref(), "_");
let data_dir = tauri::api::path::app_local_data_dir(&config);
println!("Data dir: {:?}", data_dir);
match data_dir {
Some(mut p) => {
if p.is_file() {
p.pop();
p.push(identifier);
} else {
p.push(identifier);
}
p.push(identifier);
p
}
None => PathBuf::from(format!("/tmp/{}_single_instance_fifo", identifier)),
Expand Down Expand Up @@ -69,7 +63,6 @@ pub fn init<R: Runtime>(mut f: Box<SingleInstanceCallback<R>>) -> TauriPlugin<R>
plugin::Builder::new("single-instance")
.setup(move |app| {
let path = fifo_path(app.config());
println!("Final path: {:?}", path);
match mkfifo(&path, stat::Mode::S_IRWXU) {
Ok(_) => {
// create and open the FIFO, then listen for messages
Expand Down

0 comments on commit 2212c6b

Please sign in to comment.