Page 1 of 1

How to create a symbolic link to a full path?

Posted: 20 Nov 2016, 20:28
by fulalas
If you create a symbolic link from let's say /mnt/unit1/test_folder and put it on /home/guest/Desktop then if you double click this symlink you won't get the full path (/mnt/unit1/test) but /home/guest/Desktop/test_folder. How to avoid this?

Re: How to create a symbolic link to a full path?

Posted: 20 Nov 2016, 20:36
by Bogomips
Please provide a code example. Have experienced problems in that direction, but resolved them. At the moment don't know exactly what you mean. :unknown:

Re: How to create a symbolic link to a full path?

Posted: 20 Nov 2016, 20:47
by fulalas
Sorry. Let's try another way. :)

Firstly, I'm not exactly sure if this is a XFCE specific behavior, but try to create a folder shortcut (symlink) using the GUI and put it inside Desktop. If you execute (double click) this shortcut you'll notice that you get /home/guest/Desktop/test_folder instead of the full path /mnt/unit1/test_folder. In other words: symlinks change according to where they're. But I want them to be static pointing always to the full path of the destination.

Is it better explained now? :D

Re: How to create a symbolic link to a full path?

Posted: 21 Nov 2016, 02:24
by brokenman
Perhaps you are seeing the representation of the path in the file browsers address bar? For example, if you have created the symlink /home/guest/Desktop/test_folder, then navigate there in your file browser and create another file called tester, you can then open a console and check that the actual path is indeed in /mnt/unit1/test_folder/tester

Re: How to create a symbolic link to a full path?

Posted: 21 Nov 2016, 10:57
by tome
I use spacefm file manager (easy to replace Thunar) and it has right click menu Go -> Real Path - I added key shortcut to it also. You can add also action to your Thunar:

Code: Select all

Thunar `realpath %F`
but directory will be opened in new window.

Re: How to create a symbolic link to a full path?

Posted: 22 Nov 2016, 01:42
by fulalas
tome wrote:

Code: Select all

Thunar `realpath %F`
but directory will be opened in new window.
Yeah, it works, but I don't know how to change folder shortcuts association to use this command by default.

Thanks