X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/44ac6bd5f8b1a99666a430f9d2d6d0027e8d123f..87ddbf770e1202e2b869e89f5ce609a0e856bdec:/src/dbusinterface.cpp diff --git a/src/dbusinterface.cpp b/src/dbusinterface.cpp index 366fa9950..124761ea0 100644 --- a/src/dbusinterface.cpp +++ b/src/dbusinterface.cpp @@ -29,8 +29,8 @@ DBusInterface::DBusInterface() : QObject() { - QDBusConnection::sessionBus().registerService("org.freedesktop.FileManager1"); - QDBusConnection::sessionBus().registerObject("/org/freedesktop/FileManager1", this, + QDBusConnection::sessionBus().registerService(QStringLiteral("org.freedesktop.FileManager1")); + QDBusConnection::sessionBus().registerObject(QStringLiteral("/org/freedesktop/FileManager1"), this, QDBusConnection::ExportScriptableContents | QDBusConnection::ExportAdaptors); } @@ -41,7 +41,7 @@ void DBusInterface::ShowFolders(const QStringList& uriList, const QString& start if (urls.isEmpty()) { return; } - KRun::run("dolphin %u", urls, nullptr); + KRun::run(QStringLiteral("dolphin %U"), urls, nullptr); } void DBusInterface::ShowItems(const QStringList& uriList, const QString& startUpId) @@ -51,7 +51,7 @@ void DBusInterface::ShowItems(const QStringList& uriList, const QString& startUp if (urls.isEmpty()) { return; } - KRun::run("dolphin --select %u", urls, nullptr); + KRun::run(QStringLiteral("dolphin --select %U"), urls, nullptr); } void DBusInterface::ShowItemProperties(const QStringList& uriList, const QString& startUpId)