From 7f024d3cffbde701f072b0ceefe7f5d7f0944a3f Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 10 Nov 2022 19:14:35 +0300 Subject: [PATCH] dotfiles/zshrc: set XDG_CURRENT_DESKTOP=sway This was set in ~/.pam_environment up until a few days ago, but I forgot to add it when I moved the exports to .zshrc. We need this for xdg-desktop-portal to know we're on Sway for screensharing. --- dotfiles/zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 2a34385..b10a9ce 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -45,6 +45,8 @@ if [[ "$OSTYPE" =~ ^linux.*$ ]]; then # 2020-02-10: https://github.com/swaywm/sway/wiki#issues-with-java-applications export _JAVA_AWT_WM_NONREPARENTING=1 export SDL_VIDEODRIVER=wayland + # Signal to xdg-desktop-portal that we're on Sway + export XDG_CURRENT_DESKTOP=sway {%@@ endif @@%} fi