From 4811a4f31540683ff922b3c1647a8460ad2b8f0a Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Sat, 11 Apr 2026 20:39:11 +0800 Subject: [PATCH] examples: niri: Remove XDG_CURRENT_DESKTOP workaround. The proper fix is to change portals.conf for xdg-desktop-portal. --- modules/rosenthal/examples/dot-config/niri/config.kdl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/rosenthal/examples/dot-config/niri/config.kdl b/modules/rosenthal/examples/dot-config/niri/config.kdl index 6539947..bc2aa96 100644 --- a/modules/rosenthal/examples/dot-config/niri/config.kdl +++ b/modules/rosenthal/examples/dot-config/niri/config.kdl @@ -3,13 +3,8 @@ // Check the wiki for a full description of the configuration: // https://yalter.github.io/niri/Configuration:-Introduction -environment { - // Workaround for screencasting. - XDG_CURRENT_DESKTOP "niri:GNOME" -} - // See also `import_environment' in niri source (src/main.rs). -spawn-sh-at-startup "herd set-environment graphical-session XDG_CURRENT_DESKTOP=niri XDG_SESSION_TYPE=$XDG_SESSION_TYPE NIRI_SOCKET=$NIRI_SOCKET" +spawn-sh-at-startup "herd set-environment graphical-session XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP XDG_SESSION_TYPE=$XDG_SESSION_TYPE NIRI_SOCKET=$NIRI_SOCKET" // Input device configuration. // Find the full list of options on the wiki: