From 3e214ac09eacf2f94c69b2909344d3bc590296df Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 21 Oct 2022 09:50:34 -0700 Subject: emacsclient wrapper: use XDG_RUNTIME_DIR --- bin/emacsclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/emacsclient') diff --git a/bin/emacsclient b/bin/emacsclient index 920c0102..4b35e119 100755 --- a/bin/emacsclient +++ b/bin/emacsclient @@ -29,7 +29,7 @@ want_version=false devel_running=false installed_running=false pass_to_gdbmacs=false -socket_dir="/run/user/$(id -u)/emacs/" +socket_dir="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/emacs/" get_listener () { local socket="$1" -- cgit v1.2.3