hammerspoon icon indicating copy to clipboard operation
hammerspoon copied to clipboard

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

Open Jasha10 opened this issue 1 year ago • 5 comments

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.

Jasha10 avatar Oct 20 '24 19:10 Jasha10

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 avatar Oct 20 '24 22:10 latenitefilms

Related: #3103

latenitefilms avatar Oct 20 '24 22:10 latenitefilms

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

jasha-hrp avatar Nov 11 '24 14:11 jasha-hrp

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:

  • https://github.com/Hammerspoon/hammerspoon/issues/3715

jasha-hrp avatar Nov 16 '24 19:11 jasha-hrp

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

QuantumLibet avatar Nov 16 '24 20:11 QuantumLibet