Xfce Forum

Sub domains

You are not logged in.

#1 2023-09-05 07:42:11

Registered: 2023-09-05
Posts: 2

How do I "cd -P" a symlink in Thunar? [SOLVED]

I have looked everywhere, and there does not seem to be a way to do this by default in Thunar? I just want to "back out" into the "real" parent...
(here is a "problem-solution" for the terminal https://unix.stackexchange.com/question … -by-a-link )

If a workaround is possible as a custom action, that would be swell!  I have written a few CA-scripts, but I don't see a way to force thunar to "change dir" this way? (I am also not really a programmer.)

Any ideas? Maybe I am missing something?

Last edited by undercover_agent (2023-09-05 11:25:45)

^ - ^


#2 2023-09-05 10:07:52

From: Canada
Registered: 2011-06-02
Posts: 10,489

Re: How do I "cd -P" a symlink in Thunar? [SOLVED]

Hello and welcome.

See this existing functionality enhancement request.

As for a custom action, try this (it will open a new thunar window in the link's directory and allow you to traverse that directory using the back buttons):
- Name = Move Into...
- Command = thunar $(readlink %f)
- Appearance = Directories

Alternatively, it you want to re-use the same thunar window, you could try using xdotool and the following command:

sh -c "xdotool key Ctrl+L type $(readlink %f); xdotool key Enter"

Last edited by ToZ (2023-09-05 10:08:39)

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---


#3 2023-09-05 11:21:26

Registered: 2023-09-05
Posts: 2

Re: How do I "cd -P" a symlink in Thunar? [SOLVED]

I did indeed want to re-use the same window:
Confirmed working!
Thank you! :)

P.s. My previous workaround was: RMB inside link -> Properties -> Copy "Link Target" line -> Paste in location bar
Which was not that fun...

^ - ^


Board footer

Powered by FluxBB