mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix file explorer invocation to ensure correct file selection behavior
This commit is contained in:
parent
6333cd362c
commit
47878f3829
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue