mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 07:15:47 +00:00
fix(cli): suppress dead-code warnings on Windows for Linux-only helpers
Wrap tauri_identifier, single_instance_bus_name and single_instance_object_path with #[cfg(target_os = "linux")] since they are only reachable via D-Bus paths. Move the argv collection into the linux-only block in lib.rs for the same reason. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2253,11 +2253,10 @@ fn is_tiling_wm_cmd() -> bool {
|
||||
}
|
||||
|
||||
pub fn run() {
|
||||
let argv: Vec<String> = std::env::args().collect();
|
||||
|
||||
// Linux: second `psysonic --player …` forwards over D-Bus before heavy startup.
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
let argv: Vec<String> = std::env::args().collect();
|
||||
if crate::cli::parse_cli_command(&argv).is_some() {
|
||||
match crate::cli::linux_try_forward_player_cli_secondary(&argv) {
|
||||
Ok(crate::cli::LinuxPlayerForwardResult::Forwarded) => std::process::exit(0),
|
||||
|
||||
Reference in New Issue
Block a user