Pages

January 21, 2015

Samba and mtp automatic mountpoints with gvfs


Apparently, if you browse to a Samba share using gvfs (e.g., from Gnome's file manager, Thunar, etc.), it has a good chance of appearing as a mounted volume in /run/user/{your-user-number}/gvfs/.

It seems to work for mtp devices as well. I hooked up my Android phone, and I got a /run/user/1000/mtp:host... directory. I tried a couple command line operations in there, and while it was slow as snails, it worked. Now I can write scripts that operate on data stored on my phone!

No comments: