Set default supported schemas when no config file is provided

This commit is contained in:
Sandro Jäckel
2023-05-12 21:01:42 +02:00
parent 6d21e61624
commit c9bd2e4ea1

View File

@@ -48,14 +48,15 @@ var defaultSupportedSchemas = []string{
var defaultConfig = Config{ var defaultConfig = Config{
Players: map[string]Player{ Players: map[string]Player{
"mpv": { "mpv": {
Name: "mpv", Name: "mpv",
Executable: "mpv", Executable: "mpv",
Fullscreen: "--fs", Fullscreen: "--fs",
Pip: `--ontop --no-border --autofit=384x216 --geometry=98%:98%`, Pip: `--ontop --no-border --autofit=384x216 --geometry=98%:98%`,
Enqueue: "", Enqueue: "",
NewWindow: "", NewWindow: "",
NeedsIpc: true, NeedsIpc: true,
FlagOverrides: map[string]string{}, SupportedSchemes: defaultSupportedSchemas,
FlagOverrides: map[string]string{},
}, },
}, },
} }