diff --git a/shell/main.cpp b/shell/main.cpp index cc1ca36a3..e75788b6d 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -18,6 +18,7 @@ #include #include #include "aboutdata.h" +#include "shellutils.h" static bool attachUniqueInstance(KCmdLineArgs* args) { @@ -28,7 +29,7 @@ static bool attachUniqueInstance(KCmdLineArgs* args) if (!iface.isValid()) return false; - iface.call("openDocument", args->url(0).pathOrUrl()); + iface.call("openDocument", ShellUtils::urlFromArg(args->arg(0), ShellUtils::qfileExistFunc()).url()); return true; }