diff options
author | Rodney Lorrimar <dev@rodney.id.au> | 2024-02-06 16:12:15 +0800 |
---|---|---|
committer | tomf <tom@tom-fitzhenry.me.uk> | 2024-02-07 20:10:15 +1100 |
commit | 8513f69b24a08de94af164aa068b90ad0da74630 (patch) | |
tree | d9cf27d03ddf37be1bc7340641195a7fdd165323 /nixos/modules/services/x11 | |
parent | a9982a78ee7057eb58e988d865156ed41e690ba8 (diff) | |
download | nixlib-8513f69b24a08de94af164aa068b90ad0da74630.tar nixlib-8513f69b24a08de94af164aa068b90ad0da74630.tar.gz nixlib-8513f69b24a08de94af164aa068b90ad0da74630.tar.bz2 nixlib-8513f69b24a08de94af164aa068b90ad0da74630.tar.lz nixlib-8513f69b24a08de94af164aa068b90ad0da74630.tar.xz nixlib-8513f69b24a08de94af164aa068b90ad0da74630.tar.zst nixlib-8513f69b24a08de94af164aa068b90ad0da74630.zip |
nixos/phosh: Ensure that desktop session is identified as Phosh
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/phosh.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/phosh.nix b/nixos/modules/services/x11/desktop-managers/phosh.nix index 5392ab73aeb8..75e02130addc 100644 --- a/nixos/modules/services/x11/desktop-managers/phosh.nix +++ b/nixos/modules/services/x11/desktop-managers/phosh.nix @@ -186,6 +186,21 @@ in UtmpIdentifier = "tty7"; UtmpMode = "user"; }; + environment = { + # We are running without a display manager, so need to provide + # a value for XDG_CURRENT_DESKTOP. + # + # Among other things, this variable influences: + # - visibility of desktop entries with "OnlyShowIn=Phosh;" + # https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html#key-onlyshowin + # - the chosen xdg-desktop-portal configuration. + # https://flatpak.github.io/xdg-desktop-portal/docs/portals.conf.html + XDG_CURRENT_DESKTOP = "Phosh:GNOME"; + # pam_systemd uses these to identify the session in logind. + # https://www.freedesktop.org/software/systemd/man/latest/pam_systemd.html#desktop= + XDG_SESSION_DESKTOP = "phosh"; + XDG_SESSION_TYPE = "wayland"; + }; }; environment.systemPackages = [ |