From 57df1f05f121d1a89e637833525ce63972fa3bdb Mon Sep 17 00:00:00 2001 From: nilninull Date: Sun, 4 Feb 2024 17:20:45 +0900 Subject: [PATCH] Add the DesktopNames key to the sway.desktop session file According to https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html, to set the value of XDG_CURRENT_DESKTOP, a DesktopNames key is required in the session file. And the value of XDG_CURRENT_DESKTOP is used to run xdg-desktop-portal*. If this value is not set, xdg-desktop-portal-wlr will not run at login. --- sway.desktop | 1 + 1 file changed, 1 insertion(+) diff --git a/sway.desktop b/sway.desktop index 420db5aa1..cc7fcee73 100644 --- a/sway.desktop +++ b/sway.desktop @@ -3,3 +3,4 @@ Name=Sway Comment=An i3-compatible Wayland compositor Exec=sway Type=Application +DesktopNames=sway;wlroots