Okay, I give up… how to connect my (Android) phone properly (MTP)?

Nils Kassube kassube at gmx.net
Fri Aug 7 08:43:25 UTC 2015


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".


Nils





More information about the ubuntu-users mailing list