Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I mount my Samba shares through Nautilus. I know that, behind the scenes, the share is fuse-mounted and Nautilus somehow does the translation between smb:// URLs and the actual location in the file system.

Is it possible to retrieve the "true" path in the file system for a GVFS-mounted share, for a directory or a file? How?

EDIT: If anything else fails, one could invent a tool that is applicable to any file and would just copy the command-line parameter to the clipboard. Then it would just be required to tell Nautilus to offer this tool for all files and directories.

This is related, but does not answer my question: How to copy the current path from Nautilus?

share|improve this question
Related, but doesn't help either: – krlmlr Feb 6 '15 at 13:41

I cannot find an easy way of getting nautilus to tell you this. However, there are other ways of finding out.

In Ubuntu 12.10, the "actual path" is under /run/user/USERNAME/gvfs. In 12.04, I think it was under /home/USERNAME/.gvfs (invisible unless you check View->Show Hidden Files in nautilus). The folder names inside these directories look something like smb-share:server=servername.local,share=volume_1.

share|improve this answer
Thank you, I know the location. I was just looking for a shortcut. +1 for the useful information, anyway. – krlmlr Nov 6 '12 at 12:18
up vote 3 down vote accepted

I was able to solve the problem with "Nautilus Actions":

The general idea is as follows:

  1. Install nautilus-actions.

    sudo apt-get install nautilus-actions
  2. Create the following script in any directory in your PATH:

    echo -n "$TEXT" | xclip $@
  3. In nautilus-actions, create a custom action that calls this script with parameter "%f". You may need to restart Nautilus.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.