From d6dd110781d3319ec0066185f14f5c2999c3b567 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 30 Dec 2024 11:10:27 +0800 Subject: [PATCH] Adjust open the storage location --- v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs index 2de9b453..c5216f86 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -528,17 +528,18 @@ namespace ServiceLib.ViewModels private async Task OpenTheFileLocation() { + var path = Utils.StartupPath(); if (Utils.IsWindows()) { - Utils.ProcessStart("Explorer", $"/select,{Utils.GetConfigPath()}"); + Utils.ProcessStart(path); } else if (Utils.IsLinux()) { - Utils.ProcessStart("nautilus", Utils.GetConfigPath()); + Utils.ProcessStart("nautilus", path); } else if (Utils.IsOSX()) { - Utils.ProcessStart("open", Utils.GetConfigPath()); + Utils.ProcessStart("open", path); } }