mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
doc: foot.1: fix default path in -s,--server
The documentation incorrectly stated that the default path is $XDG_RUNTIME_DIR/foot.sock. The correct default path is * $XDG_RUNTIME_DIR/foot-$XDG_SESSION_ID.sock * $XDG_RUNTIME_DIR/foot-no-session.sock * /tmp/foot.sock Depending on whether XDG_RUNTIME_DIR and XDG_SESSION_ID has been set or not. This also removes the '<>' from the default when XDG_SESSION_ID is not set. Closes #53.
This commit is contained in:
parent
a026938547
commit
f3c301ee8b
3 changed files with 15 additions and 6 deletions
2
config.c
2
config.c
|
|
@ -1194,7 +1194,7 @@ get_server_socket_path(void)
|
|||
return strdup("/tmp/foot.sock");
|
||||
|
||||
if (xdg_session_id == NULL)
|
||||
xdg_session_id = "<no-session>";
|
||||
xdg_session_id = "no-session";
|
||||
|
||||
char *path = malloc(strlen(xdg_runtime) + 1 + strlen("foot-.sock") + strlen(xdg_session_id) + 1);
|
||||
sprintf(path, "%s/foot-%s.sock", xdg_runtime, xdg_session_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue