From 35a89bdfa6064e507f8848b1d162433fe92ca829 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Jul 2022 22:25:19 +0200 Subject: [PATCH] fix(lib): missing bin/doom error on doom/reload doom/reload quotes `doom-bin`, but if doom-bin uses a tilde instead of an absolute path, the quoting means it won't be expanded to $HOME, causing "no such file or directory" errors when trying to execute it. Fix: #6603 --- core/autoload/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/autoload/config.el b/core/autoload/config.el index 562a22730..3b99527ea 100644 --- a/core/autoload/config.el +++ b/core/autoload/config.el @@ -1,7 +1,7 @@ ;;; core/autoload/config.el -*- lexical-binding: t; -*- -(defvar doom-bin-dir (concat doom-emacs-dir "bin/")) -(defvar doom-bin (concat doom-bin-dir "doom")) +(defvar doom-bin-dir (expand-file-name "bin/" doom-emacs-dir)) +(defvar doom-bin (expand-file-name "doom" doom-bin-dir)) ;;;###autoload (defvar doom-reloading-p nil