wip: dbus activation & single instance support

refactor: activation action with new trait for subcommand and args

refactor: libcosmic can handle sending the activation request

cleanup
This commit is contained in:
Ashley Wulber 2023-11-13 16:28:48 -05:00 committed by Ashley Wulber
parent 1caae11e8f
commit c9554a8740
5 changed files with 373 additions and 3 deletions

View file

@ -62,6 +62,9 @@ pub struct Settings {
/// Whether the application should exit when there are no open windows
pub(crate) exit_on_close: bool,
/// Only allow a single instance of the application to run
pub single_instance: bool,
}
impl Settings {
@ -97,6 +100,7 @@ impl Default for Settings {
theme: crate::theme::system_preference(),
transparent: false,
exit_on_close: true,
single_instance: false,
}
}
}