Get location of "true" GVFS path from Nautilus

Solution 1:

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.

Solution 2:

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

http://www.howtogeek.com/116807/how-to-easily-add-custom-right-click-options-to-ubuntus-file-manager/

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:

    #!/bin/sh
    
    TEXT=$1
    shift
    
    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.