sway: give SWAYSOCK a consistent name

This commit is contained in:
Colin 2024-02-15 14:38:54 +00:00
parent 2fbbe7fd78
commit 06f1f1e9ea

View File

@ -38,7 +38,12 @@ let
extraOptions = [
# "--debug"
];
extraSessionCommands = "";
extraSessionCommands = ''
# sway defaults to auto-generating a unix domain socket named "sway-ipc.$UID.NNNN.sock",
# which allows for multiple sway sessions under the same user.
# but the unpredictability makes static sandboxing & such difficult, so hardcode it:
export SWAYSOCK="$XDG_RUNTIME_DIR/sway-ipc.sock"
'';
# withBaseWrapper sets XDG_CURRENT_DESKTOP=sway
# and makes sure that sway is launched dbus-run-session.
withBaseWrapper = true;