1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

Fix alacritty config path mismatch with it's doc

According to https://github.com/alacritty/alacritty/tree/master#configuration, the configure file should be in following path

1. $XDG_CONFIG_HOME/alacritty/alacritty.yml
2. $XDG_CONFIG_HOME/alacritty.yml
3. $HOME/.config/alacritty/alacritty.yml
4. $HOME/.alacritty.yml

but paths in script do not fully match these paths, this patch fix this problem.
This commit is contained in:
--global 2023-05-05 11:36:09 +08:00
parent 95b61432b4
commit b2cebbda95

View File

@ -34,10 +34,10 @@ def get_conf_path():
home = os.getenv('HOME') home = os.getenv('HOME')
if home is not None and os.path.exists(home + '/.config/alacritty/alacritty.yml'): if home is not None and os.path.exists(home + '/.config/alacritty/alacritty.yml'):
return home + "/.config/alacritty/alacritty.yml" return home + "/.config/alacritty/alacritty.yml"
if home is not None and os.path.exists(home + '/.config/alacritty.yml'): if home is not None and os.path.exists(home + '/.config/alacritty/alacritty.yml'):
return home + "/.config/alacritty.yml" return home + "/.config/alacritty/alacritty.yml"
if home is not None and os.path.exists(home + 'alacritty.yml'): if home is not None and os.path.exists(home + '/.alacritty.yml'):
return home + "/alacritty.yml" return home + "/.alacritty.yml"
print("Could not find alacritty config file\nPlease make sure you have a file in one of the paths specified on\nhttps://github.com/alacritty/alacritty#configuration") print("Could not find alacritty config file\nPlease make sure you have a file in one of the paths specified on\nhttps://github.com/alacritty/alacritty#configuration")
sys.exit(1) sys.exit(1)