From c764dd00b6d5e161f01ad87ae3d25b504c72d32d Mon Sep 17 00:00:00 2001 From: Thomas Hebb Date: Sat, 24 Apr 2021 17:09:43 -0700 Subject: [PATCH] Add DesktopNames key to sway.desktop As documented[1] in the Desktop Entry Specification, this key causes the login manager to set XDG_CURRENT_DESKTOP to its value. Projects like xdg-desktop-portal-wlr[2] require XDG_CURRENT_DESKTOP=sway to work properly, so let's add this key to our desktop file to make those projects work more seamlessly for people who use login managers. [1] https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html [2] https://github.com/emersion/xdg-desktop-portal-wlr --- sway.desktop | 1 + 1 file changed, 1 insertion(+) diff --git a/sway.desktop b/sway.desktop index 420db5aa1..7034a2969 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