From 46b27d6173fd1ea95c0fcf5e781eadbfcec75a30 Mon Sep 17 00:00:00 2001 From: FreeSlave Date: Wed, 18 May 2016 12:01:50 +0300 Subject: [PATCH] Fix for Windows --- README.md | 1 + source/desktopfile/utils.d | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf63a02..1b50b92 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/source/desktopfile/utils.d b/source/desktopfile/utils.d index 5a06d2e..40b9a45 100644 --- a/source/desktopfile/utils.d +++ b/source/desktopfile/utils.d @@ -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..$]; } }