use socket activated dbus
This commit is contained in:
parent
f52e993906
commit
f1fd27093b
7
sway.nix
7
sway.nix
@ -50,15 +50,12 @@
|
||||
firefox = firefox-wayland;
|
||||
};
|
||||
|
||||
services.dbus.socketActivated = true;
|
||||
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
|
||||
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
|
||||
|
||||
# https://github.com/swaywm/sway/issues/4506
|
||||
|
Loading…
Reference in New Issue
Block a user