Fix xdg-desktop-portal / dbus issues

- Added some systemd and dbus environment commands to winitrc
- Running dwl via `dbus-run-session` instead of exec
- Waybar works on startup now
- KDE wallet works as well
This commit is contained in:
Sravan Balaji
2024-10-01 23:44:49 -04:00
parent 6a050b96f3
commit c80b2cb76e
3 changed files with 7 additions and 3 deletions

View File

@@ -9042,7 +9042,9 @@ export XDG_CURRENT_DESKTOP=wlroots # Set XDG current desktop
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwl/.winitrc
$HOME/.scripts/wayland-startup.sh --kill-startup
exec dwl -s 'sleep 5 && $HOME/.scripts/wayland-startup.sh --startup'
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
dbus-run-session dwl -s '$HOME/.scripts/wayland-startup.sh --startup'
#+END_SRC
*** Wayland Startup

View File

@@ -11,4 +11,6 @@ export XDG_CURRENT_DESKTOP=wlroots # Set XDG current desktop
$HOME/.scripts/wayland-startup.sh --kill-startup
exec dwl -s 'sleep 5 && $HOME/.scripts/wayland-startup.sh --startup'
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
dbus-run-session dwl -s '$HOME/.scripts/wayland-startup.sh --startup'