televator-apps / vimari

Safari port of vimium
https://televator.net/vimari
MIT License
2.56k stars 232 forks source link

Store userSettings.json in a more portable location, and support symlinks #214

Open dhleong opened 3 years ago

dhleong commented 3 years ago

Is your feature request related to a problem? Please describe.

  1. The current location is a bit hard to find
  2. Vimari doesn't seem to support reading symlinks?

Describe the solution you'd like

This may not be possible due to Apple security restrictions, but unless the directory the settings file is stored under is automatically sync'd by Apple it might be nice if we could store them in a more intuitive location, like $HOME/.config/vimari, which is easier to store in a git repo alongside other settings one might want to sync across devices.

Describe alternatives you've considered

Checking the iCloud folder might be a reasonable compromise?

Additional context

I've tried creating a symlink in place of the userSettings.json and it seems to be ignored; the "edit config file" button just opens Safari and otherwise does nothing, and only the default settings seem to have effect.

dhleong commented 3 years ago

Started looking into this; I suspect my symlink isn't working because macOS is resolving the link and seeing that the destination is outside the sandbox, and preventing the extension from accessing it. Bummer, but probably "good."

jandamm commented 3 years ago

I'm interested in this feature as well.

lstarrett commented 2 years ago

Can someone tell me where I can find userSettings.json?? I think I messed up my config, but removing and reinstalling Vimari did not reset the userSettings.json file to defaults, so I'm stuck with my broken config, as I cannot find the location of the configuration file (I've tried find from the Terminal and searches in Finder, with no luck, so my only guess is that it's buried in a binary or something).

Where can I find this file to delete it and do a fresh install?

lstarrett commented 2 years ago

Never mind, I found it buried in the Vimari container: ~/Library/Containers/net.televator.Vimari.SafariExtension/Data/Library/Application Support/userSettings.json