Relative file path sent as link in share in cli
Fixed it
This commit is contained in:
parent
c7055cfe15
commit
8915d770b6
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue