Ubuntu – How to select a file from a network share with file manager file open dialog

filemanagernetworking

I use nemo file manager on Xubuntu 16.04.

I have connected several network shares. I have also bookmarked them. In nemo I can access all files.
When I try to open a file with an application I do get a standard file open dialog that does not have those shares. There is "Other locations" but that only gives the mounted driver. No bookmarks, no network shares.

In essence, I do not know how to open any network file in Xubuntu with an application. Only workaround I see is to copy all files to home, open them there and when done store them back to a network share. I am sure there must be another way. Please help!

PS: I think this is not specific to Xubnutu desktop. Its the same when I select thunar as preferred file manager.

Best Answer

I have found an answer, but I do hope its not the best one. I found it in that post: https://forums.linuxmint.com/viewtopic.php?t=144053. Its a workaround, really.

The desktop file managers mount network shares not in the home directory, but in the the linux directory tree. Actually an idea with consequences, because network shares contain user permissions. That means not every user is able to get access to very share. That means you can have the same share connected by different users at the same time, each with different permissions. That means, that the share can not be stored by share name, but there must be a destinction by user.

So in my case they have decided to put all shares mounted by a file manager to

 /run/user/1000/gvfs/

In that directory are all shares. The 1000 is my current the 'user id'. On a system with multiple users it could be 1061 or whatever. 'gvfs' is about the file system technology involved. The names are a bit cryptic like 'smb-share:server=myserver,share=images' but at least recognizable. Currently I fail to see the advantage compared to /home/username/shares, or ~/shares, which would be accessible from each application with 2 clicks. maybe someone can enlighten me.

So as described in the post the workaround is based on the fact that local bookmarks actually are listed in the file open dialogs (shares are not). So just goto your version of

 /run/user/1000/gvfs/

and add a bookmark. That is listed in the file open dialog, and then you are in the list of shares. You see a bookmark 'gvfs' which you can rename to "Network Shares"

So its solved principally and its event 2 clicks only, but it still somehow is a very bad solution and a workaround. I still can not browse the network. I can not see anything when I did not mount the share in a file manager. All the function is already there in the file manager, what could possibly block a decision to expose that function to the file open dialog? Please do not hesitate to add a comment that help a new user to understand that.

Thanks and hope for better answers.

Related Question