Skip to content

Commit 0b84766

Browse files
committed
env fix
1 parent 2e7f305 commit 0b84766

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed

files/system/etc/systemd/user/dms.service

Lines changed: 0 additions & 21 deletions
This file was deleted.

files/system/etc/xdg/labwc/autostart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
export XDG_CURRENT_DESKTOP="labwc:wlroots"
66
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-labwc}"
77
export XDG_SESSION_TYPE="${XDG_SESSION_TYPE:-wayland}"
8-
export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
8+
# Default XDG_DATA_DIRS so DMS/launchers see Flatpaks on first login.
9+
export XDG_DATA_DIRS="${XDG_DATA_DIRS:-$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share}"
910
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE XDG_DATA_DIRS
1011

1112
# Make sure dbus-activated services (like xdg-desktop-portal) see the session env.

files/system/usr/lib/systemd/user/dms.service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Environment=PATH=/usr/bin
1111
Environment=XDG_SESSION_TYPE=wayland
1212
Environment=XDG_CURRENT_DESKTOP=labwc
1313
Environment=QT_QPA_PLATFORM=wayland
14+
Environment=XDG_DATA_DIRS=%h/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
1415
PassEnvironment=XDG_DATA_DIRS XDG_DATA_HOME XDG_CONFIG_HOME XDG_CACHE_HOME
15-
ExecStart=/usr/bin/dms run --session
16+
ExecStart=/bin/sh -lc 'export WAYLAND_DISPLAY=${WAYLAND_DISPLAY:-wayland-0}; export DISPLAY=${DISPLAY:-:0}; exec /usr/bin/dms run --session'
1617
ExecReload=/usr/bin/pkill -USR1 -x dms
1718
Restart=always
1819
RestartSec=1.23

0 commit comments

Comments
 (0)