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
|
try
|
||||||
{
|
{
|
||||||
|
workingDirectory = string.IsNullOrEmpty(workingDirectory) ? Environment.CurrentDirectory : workingDirectory;
|
||||||
|
|
||||||
// Deelevate process if it is running as administrator
|
// Deelevate process if it is running as administrator
|
||||||
if (Win32Helper.IsAdministrator() && !runAsAdmin)
|
if (Win32Helper.IsAdministrator() && !runAsAdmin)
|
||||||
{
|
{
|
||||||
|
|
@ -595,7 +597,7 @@ namespace Flow.Launcher
|
||||||
var info = new ProcessStartInfo
|
var info = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
FileName = filePath,
|
FileName = filePath,
|
||||||
WorkingDirectory = string.IsNullOrEmpty(workingDirectory) ? Environment.CurrentDirectory : workingDirectory,
|
WorkingDirectory = workingDirectory,
|
||||||
Arguments = arguments,
|
Arguments = arguments,
|
||||||
UseShellExecute = true,
|
UseShellExecute = true,
|
||||||
Verb = runAsAdmin ? "runas" : "",
|
Verb = runAsAdmin ? "runas" : "",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue