diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-12-01 08:49:46 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2023-12-01 08:51:35 +0000 |
commit | 3dee7e5522361d15406e740a13b16d00b4138fe4 (patch) | |
tree | 5b778e56ab9de20aa4631163563f4a7b494c7d44 /x11-wm/niri | |
parent | 973d9f4cec92516b94bbd408a1c59e1e73c09fd6 (diff) | |
download | ports-3dee7e5522361d15406e740a13b16d00b4138fe4.tar.gz ports-3dee7e5522361d15406e740a13b16d00b4138fe4.zip |
x11-wm/niri: set XDG_SESSION_TYPE by default (a la niri-session)
Smithay (unlike wlroots) doesn't seem to set XDG_SESSION_TYPE.
Mainly affects Qt which prefers XDG_SESSION_TYPE over WAYLAND_DISPLAY.
Diffstat (limited to 'x11-wm/niri')
-rw-r--r-- | x11-wm/niri/files/patch-no-systemd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/x11-wm/niri/files/patch-no-systemd b/x11-wm/niri/files/patch-no-systemd index f22f4fbf6088..525af9ff06a6 100644 --- a/x11-wm/niri/files/patch-no-systemd +++ b/x11-wm/niri/files/patch-no-systemd @@ -42,12 +42,13 @@ Avoid various systemd dependencies let cli = Cli::parse(); let _client = tracy_client::Client::start(); -@@ -128,6 +114,9 @@ fn main() { +@@ -128,6 +114,10 @@ fn main() { socket_name.to_string_lossy() ); + // Advise xdg-desktop-portal which *-portals.conf to load + env::set_var("XDG_CURRENT_DESKTOP", "niri"); ++ env::set_var("XDG_SESSION_TYPE", "wayland"); + if is_systemd_service { // We're starting as a systemd service. Export our variables. |