mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-27 06:48:00 +01:00
Ensure that default-directory is a directory name in EXWM buffers.
Otherwise `default-directory' could be /home/user instead of /home/user/ as is expected by Emacs. * exwm-manage.el (exwm-manage--update-default-directory): Use `file-name-as-directory'.
This commit is contained in:
parent
fbc1e81ed6
commit
44e74bcc07
1 changed files with 1 additions and 1 deletions
|
@ -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 "~/")))))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue