Dont use non-writeable locations containing kitty.conf as the config dir
This commit is contained in:
parent
750018e5fe
commit
d89c1426d5
1 changed files with 4 additions and 2 deletions
|
|
@ -102,8 +102,10 @@ func ConfigDirForName(name string) (config_dir string) {
|
|||
if loc != "" {
|
||||
q := filepath.Join(loc, "kitty")
|
||||
if _, err := os.Stat(filepath.Join(q, name)); err == nil {
|
||||
config_dir = q
|
||||
return
|
||||
if unix.Access(q, unix.W_OK) == nil {
|
||||
config_dir = q
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue