access phone filesystem in command line
Nerijus Baliunas
nerijus at users.sourceforge.net
Fri Sep 14 12:35:12 BST 2018
On Tue, 4 Sep 2018 14:12:23 +0200 Albert Vaca <albertvaka at gmail.com> wrote:
> You can avoid KIO altogether by using DBus to mount the remote
> filesystem via the command line. This is how to do it using Qt's
> qdbus (change the device id for yours):
>
> $ qdbus org.kde.kdeconnect
> /modules/kdeconnect/devices/a0d8ad8b2a7b72fc/sftp mountAndWait
> true
> $ qdbus org.kde.kdeconnect
> /modules/kdeconnect/devices/a0d8ad8b2a7b72fc/sftp mountPoint
> /run/user/1000/a0d8ad8b2a7b72fc
$ qdbus org.kde.kdeconnect
/
/MainApplication
/modules
/modules/kdeconnect
/modules/kdeconnect/devices
/modules/kdeconnect/devices/122d674a200189a2
/modules/kdeconnect/devices/a9fd38157b926107
/modules/kdeconnect/devices/da7fdac5922f0762
/org
/org/kde
/org/kde/kdeconnectd
As I don't know which device is my phone, I tried all, but unsuccessfully:
$ qdbus org.kde.kdeconnect /modules/kdeconnect/devices/122d674a200189a2 mountAndWait true
Cannot find '.mountAndWait' in object /modules/kdeconnect/devices/122d674a200189a2 at org.kde.kdeconnect
$ qdbus org.kde.kdeconnect /modules/kdeconnect/devices/122d674a200189a2 mountPoint /tmp/a
Cannot find '.mountPoint' in object /modules/kdeconnect/devices/122d674a200189a2 at org.kde.kdeconnect
Regards,
Nerijus
More information about the KDEConnect
mailing list