Skip to content

Commit

Permalink
feat(session): import XDG_SESSION_DESKTOP and DESKTOP_SESSION
Browse files Browse the repository at this point in the history
The variables are useful for running terminal emulator servers as a
systemd units (`foot --server`). Shell profile scripts may depend on
the variables normally present in the desktop session.

Fixes #16
  • Loading branch information
alebastr committed Feb 22, 2022
1 parent 083d613 commit f5feb1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/session.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
# - https://systemd.io/DESKTOP_ENVIRONMENTS/
#
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=${XDG_SESSION_DESKTOP:-sway}
export XDG_SESSION_TYPE=wayland
VARIABLES="DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE"
VARIABLES="DESKTOP_SESSION XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE"
VARIABLES="${VARIABLES} DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY"
SESSION_TARGET="sway-session.target"
WITH_CLEANUP=""

Expand Down

0 comments on commit f5feb1e

Please sign in to comment.