mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-07 14:17:59 +03:00
StartupPath optional LocalApplicationData for linux
This commit is contained in:
@@ -46,6 +46,11 @@
|
||||
|
||||
public bool InitApp()
|
||||
{
|
||||
if (Utils.IsLinux() && Utils.HasWritePermission() == false)
|
||||
{
|
||||
Environment.SetEnvironmentVariable("V2RAYN_LOCAL_APPLICATION_DATA", "1", EnvironmentVariableTarget.Process);
|
||||
}
|
||||
|
||||
Logging.Setup();
|
||||
var config = ConfigHandler.LoadConfig();
|
||||
if (config == null)
|
||||
|
||||
Reference in New Issue
Block a user