sway: give SWAYSOCK a consistent name
This commit is contained in:
parent
2fbbe7fd78
commit
06f1f1e9ea
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user