-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where does finicky store the path to the config file? #315
Comments
It's a constant in the code => /Finicky/Finicky/Config.swift |
Interestingly, there is a way to "Use another file..." from the menu bar drop down. If you add a different config file location through that UI, and then run the command:
It clearly shows that file being stored in some encoded way. Beyond my MacFu to understand how to get that set programmatically. |
The other issue is that it seems it can't use a symlink as the config file setting, making using nix home-manager difficult. |
If it helps anyone else coming here for the same thing, I ended up just hacking a little around it.
|
Thanks for this! This might be even better:
|
The path to the config file is stored in Finicky's plist file at The field type is set to Apple's NSUrl can be used to generate this bookmark data, which can then be output as hex to use in the plist. I've got a PR open with Once that PR is merged and nixpkgs is updated to use the new version, a simple bash script in nix's onChange = ''
PATH="/usr/bin:$PATH" $DRY_RUN_CMD defaults write \
net.kassett.finicky config_location_bookmark \
-data "$(${pkgs.mkalias}/bin/mkalias "${config.home.homeDirectory}/${config.xdg.configFile.finicky.target}")"
''; Or use my branch today using an overlay: nixpkgs.overlays = [
(final: prev: {
mkalias = prev.mkalias.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "dudeofawesome";
repo = "mkalias";
rev = "feat/stdout-hex-data";
hash = "sha256-pPIMLnbpx8A9nvKsrOFFcsSu2v260dLr+4HQAc8A9xc=";
};
});
})
]; |
Any ideas, suggestions or other feedback
Question: is there a config file in which finicky remembers the path to the specified
.finicky.js
file?Reason: In the finicky menu it's possible to select a config file at an arbitrary path. I'm using a dotfile manager to manage my
.finicky.js
file at a non-default path (.config/...
, to keep my~/
folder tidy) which means manually telling finicky where the new file is located when installing finicky and the config on a fresh machine.I want to have the whole thing automated (finicky with Brew bundle and the config with chez-moi). It's almost there except I need to manually tell finicky where the new config is located.
Is there some file in which finicky is storing the path to
.finicky.js
, so that I could put into my dotfile manager also? Then when I deploy finicky and its settings to a new machine, I won't have to manually point it to the custom config path.Hope I'm making sense, thanks for any info
The text was updated successfully, but these errors were encountered: