mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Update work directory correctly
This commit is contained in:
parent
ea9ede2e0e
commit
d13901bb9d
1 changed files with 3 additions and 1 deletions
|
|
@ -581,6 +581,8 @@ namespace Flow.Launcher
|
|||
{
|
||||
try
|
||||
{
|
||||
workingDirectory = string.IsNullOrEmpty(workingDirectory) ? Environment.CurrentDirectory : workingDirectory;
|
||||
|
||||
// Deelevate process if it is running as administrator
|
||||
if (Win32Helper.IsAdministrator() && !runAsAdmin)
|
||||
{
|
||||
|
|
@ -595,7 +597,7 @@ namespace Flow.Launcher
|
|||
var info = new ProcessStartInfo
|
||||
{
|
||||
FileName = filePath,
|
||||
WorkingDirectory = string.IsNullOrEmpty(workingDirectory) ? Environment.CurrentDirectory : workingDirectory,
|
||||
WorkingDirectory = workingDirectory,
|
||||
Arguments = arguments,
|
||||
UseShellExecute = true,
|
||||
Verb = runAsAdmin ? "runas" : "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue