diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-20 13:35:10 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-21 07:27:49 +0400 |
| commit | f0a5e9c9332624aa7ea201c8c83f4f20b0a9775f (patch) | |
| tree | 644b9e74aafb3e23198bf6e0ecc3355ee88233b6 /src/cli.rs | |
| parent | c4c07841d7c9f7b86e0142c795282cdf3ef53213 (diff) | |
| download | niri-f0a5e9c9332624aa7ea201c8c83f4f20b0a9775f.tar.gz niri-f0a5e9c9332624aa7ea201c8c83f4f20b0a9775f.tar.bz2 niri-f0a5e9c9332624aa7ea201c8c83f4f20b0a9775f.zip | |
Add --session CLI flag instead of detection based on systemd service
Allows running without systemd.
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -15,6 +15,13 @@ pub struct Cli { /// Path to config file (default: `$XDG_CONFIG_HOME/niri/config.kdl`). #[arg(short, long)] pub config: Option<PathBuf>, + /// Import environment globally to systemd and D-Bus, run D-Bus services. + /// + /// Set this flag in a systemd service started by your display manager, or when running + /// manually as your main compositor instance. Do not set when running as a nested window, or + /// on a TTY as your non-main compositor instance, to avoid messing up the global environment. + #[arg(long)] + pub session: bool, /// Command to run upon compositor startup. #[arg(last = true)] pub command: Vec<OsString>, |
