diff --git a/lisp/doom-cli.el b/lisp/doom-cli.el index b3fc3c9ff..c7b322ac0 100644 --- a/lisp/doom-cli.el +++ b/lisp/doom-cli.el @@ -1206,7 +1206,7 @@ Emacs' batch library lacks an implementation of the exec system call." "_doomrun() {\n " ,command "\n}\n" ,(string-join persisted-env " \\\n") ,(cl-loop for (envvar . val) - in `(("DOOMPROFILE" . ,(doom-profile->id (or doom-profile doom-profile-default))) + in `(("DOOMPROFILE" . ,(ignore-errors (doom-profile->id doom-profile))) ("EMACSDIR" . ,doom-emacs-dir) ("DOOMDIR" . ,doom-user-dir) ("DEBUG" . ,(if init-file-debug "1"))