From c59249d53a7fc9e895ebd7e157da0ba2d1711160 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 24 Jan 2026 15:57:52 +0800 Subject: [PATCH] Save Python/Node paths as absolute, not relative Removed logic that converted selected Python and Node executable paths to relative if within the program directory. Now, the selected file paths are stored as absolute paths without conversion. This simplifies path handling and improves clarity. --- .../SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs index eb00ae3ea..aa78849ba 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs @@ -377,8 +377,7 @@ public partial class SettingsPaneGeneralViewModel : BaseModel ); if (!string.IsNullOrEmpty(selectedFile)) - // Convert to relative path if within ProgramDirectory for portability - Settings.PluginSettings.PythonExecutablePath = Constant.ConvertToRelativePathIfPossible(selectedFile); + Settings.PluginSettings.PythonExecutablePath = selectedFile; } [RelayCommand] @@ -390,8 +389,7 @@ public partial class SettingsPaneGeneralViewModel : BaseModel ); if (!string.IsNullOrEmpty(selectedFile)) - // Convert to relative path if within ProgramDirectory for portability - Settings.PluginSettings.NodeExecutablePath = Constant.ConvertToRelativePathIfPossible(selectedFile); + Settings.PluginSettings.NodeExecutablePath = selectedFile; } [RelayCommand]