Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanabx committed Apr 18, 2024
1 parent 3df2fb0 commit ddccb7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod server;

/// program to get desktop entries from containers
#[derive(Parser, Debug)]
#[command(version, about, long_about = None, arg_required_else_help = true)]
#[command(version, about, long_about = None)]
struct Args {
#[arg(short, long, requires = "server", value_name = "CONFIG_PATH")]
/// [AS SERVER] Path to an alternate config for the program.
Expand Down
8 changes: 3 additions & 5 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ async fn set_up_client(
}
}
}
fs::create_dir(&to_path.join("applications"));
fs::create_dir(&to_path.join("icons"));
fs::create_dir(&to_path.join("pixmaps"));
let _ = fs::create_dir(&to_path.join("applications"));
let _ = fs::create_dir(&to_path.join("icons"));
let _ = fs::create_dir(&to_path.join("pixmaps"));
// Find the data dirs and iterate over them
for x in run_in_client(container_name, container_type, "echo $XDG_DATA_DIRS", true)?
.unwrap()
Expand Down Expand Up @@ -141,8 +141,6 @@ async fn set_up_client(
continue; // We don't want to push NoDisplay entries into our host
}

println!("{}", entry.to_string());

match proxy.register_entry(&entry.appid, &file_text).await {
Ok(_) => {
log::info!("Daemon registered entry: {}", entry.appid);
Expand Down

0 comments on commit ddccb7d

Please sign in to comment.