access phone filesystem in command line

Andy Holmes andrew.g.r.holmes at gmail.com
Fri Sep 14 12:51:47 BST 2018


I've never used qdbus myself so I don't know the CLI arguments, but it 
looks like you have the well-known name (org.kde.kdeconnect) and the 
object path (/modules/kdeconnect/devices/122d674a200189a2) but you're 
missing the interface name 'sftp'.

On Fri, 14 Sep, 2018 at 4:35 AM, Nerijus Baliunas 
<nerijus at users.sourceforge.net> wrote:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20180914/50bdde6c/attachment.html>


More information about the KDEConnect mailing list