use socket activated dbus

This commit is contained in:
Gabriel Ebner 2020-09-20 17:00:59 +02:00
parent f52e993906
commit f1fd27093b
1 changed files with 2 additions and 5 deletions

View File

@ -50,15 +50,12 @@
firefox = firefox-wayland; firefox = firefox-wayland;
}; };
services.dbus.socketActivated = true;
programs.sway = { programs.sway = {
enable = true; enable = true;
extraSessionCommands = '' extraSessionCommands = ''
if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec ${pkgs.dbus}/bin/dbus-run-session "$0" "$@"
fi
export DBUS_SESSION_BUS_ADDRESS
export SDL_VIDEODRIVER=wayland export SDL_VIDEODRIVER=wayland
# https://github.com/swaywm/sway/issues/4506 # https://github.com/swaywm/sway/issues/4506