mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Dont use non-writeable locations containing kitty.conf as the config dir
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user