Re: Okay, I give up… how to connect my (Android) phone properly (MTP)?
Johnny Rosenberg
gurus.knugum at gmail.com
Fri Aug 7 11:37:31 UTC 2015
2015-08-07 10:43 GMT+02:00 Nils Kassube <kassube at gmx.net>:
> Johnny Rosenberg wrote:
> > My script has another bug that will happen if there is more than one
> > folder in ”/run/user”. That can happen and it happened when I
> > switched user to my wife's account. For a moment there was a
> > directory called ”112”, which is ”lightdm” and it messed up my log
> > file a bit.
>
> An easy way to find the (hopefully) correct path would be to use
> "/run/user/$UID". As I understand it, your final path should be
> "/run/user/$UID/gvfs/mtp:host=%5Busb%3A001%2C011%5D". If you even want
> to avoid the $UID, you could even use
> "/run/user/*/gvfs/mtp:host=%5Busb%3A001%2C011%5D".
>
>
No, the script is run from the system, so there is no UID or any
environment variables at all except those related to Udev.
Also, the path IS correct. I pasted it to the terminal several times and it
works every time. Why the script doesn't agree, I don't know. Note that I
tested this while the script was looping for eternity. I read it directly
from my log file (which grew all the time) and pasted it in after a cd
command, and the cd command took me to my phone, so as I said, the path is
correct!
The ”/run/user/*/gvfs…” thing is however something that I didn't think of.
I'll experiment a bit with it.
Kind regards
Johnny Rosenberg
>
> Nils
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150807/719b804c/attachment.html>
More information about the ubuntu-users
mailing list