about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--exwm-manage.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm-manage.el b/exwm-manage.el
index d1eeaa7c876c..ab66e298ac8e 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -247,7 +247,7 @@ This only works when procfs is mounted, which may not be the case on some BSDs."
               (pid (slot-value response 'value))
               (cwd (file-symlink-p (format "/proc/%d/cwd" pid)))
               ((file-accessible-directory-p cwd)))
-        (setq default-directory cwd)
+        (setq default-directory (file-name-as-directory cwd))
       (setq default-directory (expand-file-name "~/")))))