Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4975  / 1 Year ago, sat, march 4, 2023, 1:11:55

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?


More From » nautilus

 Answers
6

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.



[#34446] Saturday, March 4, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
defendle

Total Points: 219
Total Questions: 131
Total Answers: 112

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
defendle questions
Mon, May 10, 21, 03:46, 3 Years ago
Mon, Dec 5, 22, 07:16, 1 Year ago
;