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 can I copy the current path from Nautilus?


2 Answers 2


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.

  • Thank you, I know the location. I was just looking for a shortcut. +1 for the useful information, anyway.
    – krlmlr
    Nov 6, 2012 at 12:18
  • Right, but whenever you navigate there it shows the masked location again.
    – Paul
    Jun 9, 2020 at 20:05

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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