diff options
Diffstat (limited to 'lisp/xdg.el')
-rw-r--r-- | lisp/xdg.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/xdg.el b/lisp/xdg.el index 65e35b7b35c..e5a3de48289 100644 --- a/lisp/xdg.el +++ b/lisp/xdg.el @@ -117,7 +117,7 @@ file:///foo/bar.jpg" (defun xdg--substitute-home-env (str) (if (file-name-absolute-p str) str (save-match-data - (and (string-match "^$HOME/" str) + (and (string-match "^\\$HOME/" str) (replace-match "~/" t nil str 0))))) (defun xdg--user-dirs-parse-line () |