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:
parent
4169045fa4
commit
0e7f2ada72
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue