access phone filesystem in command line

Nerijus Baliunas nerijus at users.sourceforge.net
Sun Sep 16 16:10:28 BST 2018


On Sun, 16 Sep 2018 17:39:00 +0300 Nerijus Baliunas <nerijus at users.sourceforge.net> wrote:

> Thanks.
> $ kdeconnect-cli -l
> - Samsung Galaxy Note II: 122d674a200189a2 (suporuotas)
> - Elephone: a9fd38157b926107 (suporuotas)
> - Elephone: da7fdac5922f0762 (suporuotas)
> 
> $ LANG=C kdeconnect-cli -l
> - Samsung Galaxy Note II: 122d674a200189a2 (paired)
> - Elephone: a9fd38157b926107 (paired and reachable)
> - Elephone: da7fdac5922f0762 (paired)
> 
> Lithuanian translation is incomplete and confusing, "paired and reachable"
> should be "suporuotas ir pasiekiamas".
> 
> $ kdeconnect-cli --device 122d674a200189a2 --unpair
> Device does not exist
> 
> Why?
> 
> $ kdeconnect-cli --device a9fd38157b926107 --ping
> error: No such object path '/modules/kdeconnect/devices/a9fd38157b926107/ping'
> 
> Why?

Sorry, kdeconnect was not connected. When connected the ping works:
$ kdeconnect-cli --device a9fd38157b926107 --ping
(no output and phone pings)

But:
$ qdbus org.kde.kdeconnect/modules/kdeconnect/devices/a9fd38157b926107/sftp mountAndWait true
Service 'org.kde.kdeconnect/modules/kdeconnect/devices/a9fd38157b926107/sftp' is not a valid name.

$ qdbus org.kde.kdeconnect/modules/kdeconnect/devices/a9fd38157b926107/sftp mountPoint /tmp/a
Service 'org.kde.kdeconnect/modules/kdeconnect/devices/a9fd38157b926107/sftp' is not a valid name.

And ping stops working:
$ kdeconnect-cli --device a9fd38157b926107 --ping
error: No such object path '/modules/kdeconnect/devices/a9fd38157b926107/ping'
It works after I kill and restart kdeconnect on a phone. But qdbus still does not work.
 
> On Sat, 15 Sep 2018 19:47:46 -0600 Albert Vaca <albertvaka at gmail.com> wrote:
> 
> > Use kdeconnect-cli -l
> > 
> > On Fri, Sep 14, 2018, 09:00 Nerijus Baliunas <nerijus at users.sourceforge.net>
> > wrote:
> > 
> > > How do I know which id corresponds to my phone?
> > >
> > > On Fri, 14 Sep 2018 07:57:58 -0600 Albert Vaca <albertvaka at gmail.com>
> > > wrote:
> > >
> > > > Make sure your phone appears as reachable using the CLI and then use
> > > qdbus
> > > > again. Seems your phone was not connected to your PC when you ran that.
> > > >
> > > > On Fri, Sep 14, 2018, 06:12 Nerijus Baliunas <
> > > nerijus at users.sourceforge.net>
> > > > wrote:
> > > >
> > > > > On Fri, 14 Sep 2018 04:51:47 -0700 Andy Holmes <
> > > > > andrew.g.r.holmes at gmail.com> wrote:
> > > > >
> > > > > > 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'.
> > > > >
> > > > > Yes, sorry for that, I added /sftp as I wrote in another message,
> > > didn't
> > > > > help.
> > > > >
> > > > > Regards,
> > > > > Nerijus



More information about the KDEConnect mailing list