Skip to content

Commit

Permalink
Fix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed May 18, 2016
1 parent 557892d commit 46b27d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,5 @@ Running of multiple application instances if it does not support handling multip

On Windows (KDE installed):

set PATH=C:\ProgramData\KDE\bin;%PATH%
dub run :shoot -- C:\ProgramData\KDE\share\applications\kde4\gwenview.desktop
2 changes: 1 addition & 1 deletion source/desktopfile/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private @trusted Pid execProcess(in string[] args, string workingDirectory = nul

version(Windows) {
if (unquotedArgs.length && unquotedArgs[0].baseName == unquotedArgs[0]) {
unquotedArgs[0] = findExecutable(unquotedArgs[0]);
unquotedArgs = findExecutable(unquotedArgs[0]) ~ unquotedArgs[1..$];
}
}

Expand Down

0 comments on commit 46b27d6

Please sign in to comment.