diff --git a/cli/kdeconnect-cli.cpp b/cli/kdeconnect-cli.cpp index d29b2bd20..3aa49e599 100644 --- a/cli/kdeconnect-cli.cpp +++ b/cli/kdeconnect-cli.cpp @@ -105,7 +105,7 @@ int main(int argc, char** argv) device = parser.value("device"); QUrl url; if(parser.isSet("share")) { - url = QUrl::fromUserInput(parser.value("share")); + url = QUrl::fromUserInput(parser.value("share"), QDir::currentPath()); parser.clearPositionalArguments(); if(!url.isEmpty() && !device.isEmpty()) { QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+device+"/share", "org.kde.kdeconnect.device.share", "shareUrl");