mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-09-16 05:36:10 +00:00
Add build-time system config directory variable
This commit is contained in:
+2
-2
@@ -40,8 +40,8 @@ func readKeybindings() {
|
||||
if err != nil {
|
||||
log.Fatalf("Could not unmarshal keybindings.yml: %s", err)
|
||||
}
|
||||
} else if _, err := os.Stat("/etc/typer/keybindings.yml"); err == nil {
|
||||
reader, err := os.Open("/etc/typer/keybindings.yml")
|
||||
} else if _, err := os.Stat(path.Join(sysconfdir, "typer/keybindings.yml")); err == nil {
|
||||
reader, err := os.Open(path.Join(sysconfdir, "typer/keybindings.yml"))
|
||||
if err != nil {
|
||||
log.Fatalf("Could not read keybindings.yml: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user