mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-20 01:40:14 -05:00
server/client: use $WAYLAND_DISPLAY instead of $XDG_SESSION_ID in default socket path
Foot is a Wayland client and cannot be run outside of a Wayland session. As such, it makes more sense to use $WAYLAND_SESSION instead of $XDG_SESSION_ID in the default socket path since this makes it clearer which Wayland session we belong to. Closes #55.
This commit is contained in:
parent
387e8de751
commit
5e26d3ef47
7 changed files with 26 additions and 17 deletions
|
|
@ -81,13 +81,13 @@ arguments, to execute (instead of the default shell).
|
|||
others with it.
|
||||
|
||||
The default path is
|
||||
*$XDG\_RUNTIME\_DIR/foot-$XDG\_SESSION\_ID.sock*.
|
||||
*$XDG\_RUNTIME\_DIR/foot-$WAYLAND\_DISPLAY.sock*.
|
||||
|
||||
If *$XDG_RUNTIME_DIR* is not set, the default path is instead
|
||||
If *$XDG\_RUNTIME\_DIR* is not set, the default path is instead
|
||||
*/tmp/foot.sock*.
|
||||
|
||||
If *$XDG_RUNTIME_DIR* is set, but *$XDG_SESSION_ID* is not, the
|
||||
default path is *$XDG_RUNTIME_DIR/foot-no-session.sock*.
|
||||
If *$XDG\_RUNTIME\_DIR* is set, but *$WAYLAND\_DISPLAY* is not,
|
||||
the default path is *$XDG\_RUNTIME\_DIR/foot.sock*.
|
||||
|
||||
Note that if you change the default, you will also need to use the
|
||||
*--server-socket* option in *footclient*(1) and point it to your
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@ arguments, to execute (instead of the default shell).
|
|||
Start a login shell, by prepending a '-' to argv[0].
|
||||
|
||||
*-s*,*--server-socket*=_PATH_
|
||||
Connect to _PATH_ instead of _XDG\_RUNTIME\_DIR/foot.sock_.
|
||||
Connect to _PATH_ instead of
|
||||
*$XDG\_RUNTIME\_DIR/foot-$WAYLAND\_DISPLAY.sock*.
|
||||
|
||||
*--hold*
|
||||
Remain open after child process exits.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue