GVFS - Access Network Shares from Applications

When mounting a network share in LMDE, it appears on your desktop and can easily be browsed. Most of the time you'll be able to open those files from a simple double-click. Although, with some other applications, you won't be able to access those files to open them. In my case I experimented this, amongst others, with Geany, PHPStorm and KeePassX…

It can become frustrating as the referred “mount point” will look like smb:/ /sharepoint/folder, which you will not be able to use as an access point for your file in many applications.

This super user question (and answer) shines the light on what the problem is: the default installation of Debian Wheezy does not install the POSIX compatibility layer for GVFS.

So the solution is, in the end, quite simple to apply as it suffice to install the gvfs-fuse package, add your user to the fuse group and restart your machine !

> sudo apt-get install gvfs-fuse
> sudo adduser <username> fuse
> sudo reboot

That's it!
You'll now be able to access network shared directories under /var/run/user/<userid>/gvfs/<share>

A practical example would be:

> ls /var/run/user/1000/gvfs/smb-share\:server\=storage\,share\=team-libraries/