Fix file explorer invocation to ensure correct file selection behavior

This commit is contained in:
DB p 2025-05-27 14:08:32 +09:00
parent 6333cd362c
commit 47878f3829

View file

@ -338,7 +338,10 @@ namespace Flow.Launcher
// Windows File Manager
explorer.StartInfo = new ProcessStartInfo
{
FileName = targetPath,
FileName = "explorer.exe",
Arguments = FileNameOrFilePath is null
? DirectoryPath // only open the directory
: $"/select,\"{targetPath}\"", // open the directory and select the file
UseShellExecute = true
};
}