environment variables and more

This commit is contained in:
stax76
2023-10-31 09:44:20 +01:00
parent ea8944c1cc
commit 4c4088b28a
10 changed files with 140 additions and 119 deletions

View File

@@ -208,10 +208,10 @@ public class MainPlayer : MpvClient
get {
if (_configFolder == null)
{
string? mpv_home = Environment.GetEnvironmentVariable("MPV_HOME");
string? mpvnet_home = Environment.GetEnvironmentVariable("MPVNET_HOME");
if (Directory.Exists(mpv_home))
return _configFolder = mpv_home.AddSep();
if (Directory.Exists(mpvnet_home))
return _configFolder = mpvnet_home.AddSep();
_configFolder = Folder.Startup + "portable_config";