fix(jade): resolve Thunar 20s startup delay

Import DISPLAY and XAUTHORITY into systemd user environment and restart
xdg-desktop-portal-gtk service in xinitrc. This fixes the issue where
portal backends fail to start with "cannot open display" error when using
startx instead of a display manager.

Without this, Thunar waits 25 seconds for org.freedesktop.portal.Desktop
to respond before timing out and displaying.
This commit is contained in:
♥ Minnie ♥ 2025-12-21 12:51:17 +08:00
parent 4169045fa4
commit 0e7f2ada72
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -13,5 +13,11 @@ xset s off -dpms
# Fix for pinentry bug on NixOS
gpgconf --reload gpg-agent
# Import X display into systemd user environment
systemctl --user import-environment DISPLAY XAUTHORITY
# Start XDG desktop portal backend
systemctl --user restart xdg-desktop-portal-gtk.service
# Launch window manager
exec xmonad