diff --git a/Cargo.toml b/Cargo.toml index 38c9ffa..64405b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,9 @@ async-signals = "0.4" color-eyre = "0.6" futures-util = "0.3" cosmic-dbus-a11y = { git = "https://github.com/pop-os/dbus-settings-bindings" } -freedesktop-desktop-entry = "0.7.7" -shell-words = "1.1.0" -dirs = "6.0.0" +freedesktop-desktop-entry = { version = "0.7.7", optional = true } +shell-words = { version = "1.1.0", optional = true } +dirs = { version = "6.0.0", optional = true } itertools = "0.12" launch-pad = { git = "https://github.com/pop-os/launch-pad" } libc = "0.2" @@ -50,3 +50,4 @@ cosmic-notifications-util = { git = "https://github.com/pop-os/cosmic-notificati [features] systemd = ["dep:zbus_systemd", "dep:tracing-journald"] default = ["systemd"] +autostart = ["dep:shell-words", "dep:dirs", "dep:freedesktop-desktop-entry"] \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 89f71b7..d7e38da 100644 --- a/src/main.rs +++ b/src/main.rs @@ -457,6 +457,7 @@ async fn start( }; }; + #[cfg(feature = "autostart")] if !*is_systemd_used() { info!("looking for autostart folders"); let mut directories_to_scan = Vec::new();