FIXME: Hardcode /opt/v2rayN for bins, configs and logs

This commit is contained in:
Valeriy Manzhos 2026-04-08 15:34:12 +03:00
parent 8257cbcae6
commit ce4793cc91
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -1014,7 +1014,7 @@ public class Utils
public static string GetBinPath(string filename, string? coreType = null)
{
var tempPath = Path.Combine(StartupPath(), "bin");
var tempPath = Path.Combine("/opt/v2rayN/", "bin");
if (!Directory.Exists(tempPath))
{
Directory.CreateDirectory(tempPath);
@ -1041,7 +1041,7 @@ public class Utils
public static string GetLogPath(string filename = "")
{
var tempPath = Path.Combine(StartupPath(), "guiLogs");
var tempPath = Path.Combine("/opt/v2rayN/", "guiLogs");
if (!Directory.Exists(tempPath))
{
Directory.CreateDirectory(tempPath);
@ -1059,7 +1059,7 @@ public class Utils
public static string GetFontsPath(string filename = "")
{
var tempPath = Path.Combine(StartupPath(), "guiFonts");
var tempPath = Path.Combine("/opt/v2rayN/", "guiFonts");
if (!Directory.Exists(tempPath))
{
Directory.CreateDirectory(tempPath);
@ -1077,7 +1077,7 @@ public class Utils
public static string GetBinConfigPath(string filename = "")
{
var tempPath = Path.Combine(StartupPath(), "binConfigs");
var tempPath = Path.Combine("/opt/v2rayN/", "binConfigs");
if (!Directory.Exists(tempPath))
{
Directory.CreateDirectory(tempPath);