diff --git a/lisp/org-lint.el b/lisp/org-lint.el index 58b2c43ed..6d864125b 100644 --- a/lisp/org-lint.el +++ b/lisp/org-lint.el @@ -656,6 +656,7 @@ Use :header-args: instead" path (org-with-point-at (org-element-begin l) (org-attach-expand path))))) + (setq file (substitute-env-in-file-name file)) (and (not (file-remote-p file)) (not (file-exists-p file)) (list (org-element-begin l)