mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix command line pass issue
This commit is contained in:
parent
61717dcd50
commit
393d106c15
1 changed files with 3 additions and 1 deletions
|
|
@ -911,7 +911,9 @@ retry:
|
|||
|
||||
// 7. Start the new process with that primary token
|
||||
fixed (char* appPtr = app)
|
||||
fixed (char* cmdLinePtr = cmdLine)
|
||||
// Because argv[0] is the module name, C programmers generally repeat the module name as the first token in the command line
|
||||
// So we add one more dash before the command line to make command line work correctly
|
||||
fixed (char* cmdLinePtr = $"- {cmdLine}")
|
||||
fixed (char* currentDirPtr = currentDir)
|
||||
{
|
||||
if (!PInvoke.CreateProcessWithToken(hPrimaryToken,
|
||||
|
|
|
|||
Loading…
Reference in a new issue