examples: niri: Remove XDG_CURRENT_DESKTOP workaround.

The proper fix is to change portals.conf for xdg-desktop-portal.
This commit is contained in:
Hilton Chain 2026-04-11 20:39:11 +08:00
parent cd97d72f3b
commit 4811a4f315
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -3,13 +3,8 @@
// Check the wiki for a full description of the configuration: // Check the wiki for a full description of the configuration:
// https://yalter.github.io/niri/Configuration:-Introduction // 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). // 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. // Input device configuration.
// Find the full list of options on the wiki: // Find the full list of options on the wiki: