diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-05-01 15:29:50 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-05-01 15:29:50 +1000 |
| commit | db9ef82398a08bdf985ff26bfb230fb0cd1221a5 (patch) | |
| tree | db638792e6bcea6457ef7c092d9b4fbfe7a29856 /src/remote.hh | |
| parent | 7090be59df3f91f844f96db8b5ebd83154dccc72 (diff) | |
Rework session directory logic
Do not use a shared kakoune/ directory for all users to avoid the
complexity of having to set the sticky bit on that dir, resolve the
session directoy only once by using a static variable and an
immediately evaluated lambda.
This fixes an annoyance whenver using `su` and having Kakoune refuse
to start due to XDG_RUNTIME_DIR still being set.
Diffstat (limited to 'src/remote.hh')
| -rw-r--r-- | src/remote.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.hh b/src/remote.hh index 661053a8..903e03f1 100644 --- a/src/remote.hh +++ b/src/remote.hh @@ -45,7 +45,7 @@ private: void send_command(StringView session, StringView command); String get_user_name(); -String session_directory(); +const String& session_directory(); String session_path(StringView session); struct Server : public Singleton<Server> |
