From dbfd067e8c5fdfe965ac140bdd53c5124a932a7a Mon Sep 17 00:00:00 2001 From: Habib Alamin Date: Sat, 12 Oct 2024 00:42:24 +0100 Subject: [PATCH] Fix `package.path`s under `userruntime` w/ unexpanded tilde Lua doesn't automatically expand tildes to `$HOME`, as this code seems to assume. Fix #3518 --- Hammerspoon/setup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hammerspoon/setup.lua b/Hammerspoon/setup.lua index ab5536046..05bf89c50 100644 --- a/Hammerspoon/setup.lua +++ b/Hammerspoon/setup.lua @@ -1,6 +1,6 @@ local modpath, frameworkspath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... -local userruntime = "~/.local/share/hammerspoon/site" +local userruntime = os.getenv("HOME") .. "/.local/share/hammerspoon/site" local paths = { configdir .. "/?.lua",