aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornilninull <nilninull@gmail.com>2024-02-04 17:20:45 +0900
committerSimon Ser <contact@emersion.fr>2025-03-08 12:56:03 +0100
commit9dcccf784bf89e54e5a6f65f72c116943f3b30ea (patch)
tree9eee8489678b6585089b2fec667928cb96f444f8
parent048e304b8a54fc31b53b716538971c0c2315d4c2 (diff)
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.
-rw-r--r--sway.desktop1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway.desktop b/sway.desktop
index 420db5aa..cc7fcee7 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