Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua
http://www.hammerspoon.org
MIT License
12.11k stars 582 forks source link

Can't handle `~/.hammerspoon` being a symlink #3706

Open Jasha10 opened 4 weeks ago

Jasha10 commented 4 weeks ago

I have my config files set up like this:

 'ls' -l .hammerspoon
lrwxr-xr-x@ 1 jasha  staff  21 Oct 20 15:34 .hammerspoon -> stow/all/.hammerspoon

The ~/.hammerspoon file is a symlink pointing to a directory where I keep my spoons and init.lua.

With this setup I'm getting an error message:

Can't find ~/.hammerspoon/init.lua; create it and reload your config.
latenitefilms commented 4 weeks ago

Rather than doing a sym-link, you're probably better off just changing the default path:

defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"
latenitefilms commented 4 weeks ago

Related: #3103

jasha-hrp commented 6 days ago

How would I update the default path for the Spoons directory? I wanted to use my Spoons directory as a symlink too.

jasha-hrp commented 1 day ago

Is there a way to set the path to the Spoons directory using something similar to the MJConfigFile variable?

Edit: I've created an issue:

QuantumLibet commented 1 day ago

just for completeness sake: A symlink to the Spoons directory works just fine.