Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

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.

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
add comment
up vote 2 down vote accepted

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:

Install nautilus-actions.

Create the following script in any directory in your PATH:

#!/bin/sh

TEXT=$1
shift

echo -n "$TEXT" | xclip $@

In nautilus-actions, create a custom action that calls this script with parameter "%f". You may need to restart Nautilus.

share|improve this answer
add comment

Your Answer

 
discard

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.