It also works that when I now select a file in Thunar and right-click on it, ‘Copy path to clipboard’ appears and I can select that.
If I then right-click again in the terminal and go to paste, a warning message appears:
‘Pasting this text into the terminal may be dangerous as it looks like some commands may be executed.’
Is it dangerous to do this? Is there another easier solution to get this function in Linux? In Windows you can copy the path of any file with a right click.
Edit: It also works simply by copying the file (right-click copy or ctr+c) and then pasting it in the terminal (right-click paste or ctl+shift+v) or by draging the file into the terminal.
That often happens when there is White Space included with the paste. Often, a space or "enter" - it is dropped down a line. You can usually see and remove it but...
You do not need any of that nor a Custom Command.
Just left click the addresbar in Thunar and it transforms into a path in print that you can just copy immediately with ctl+c or with right click (it appears already fully highlighted.). You can type in it too, to direct to a new path.
If you want a file path included, you only need to Right click that file in that directory and then ctl+shift+v in the terminal (or right click in terminal and select paste) and it will paste the full path and file name.
It's feedback for me to say this, but Copy as Path would be a good addition for the stated goal of being easy to adopt for Windows users. I know and agree some things work differently and users need to embrace a new platform, but I cannot begin to tell you how valuable Copy as Path and Invert Selection were to me in Windows 10 and 11.
In Nautilus I can accomplish the former by right clicking a file and choosing copy, then "Paste as Filenames" in a terminal, but if my destination isn't a terminal (say, I need the file path in a spreadsheet for some reason), I seem to be up a creek.
During lockdown when using the terminal to get to a document in a sub directory for say when using pdftk (pdf repair tool) I had to re-learn that unlike Windows which uses forward slashes in a directory tree, GNU/Linux / Unix uses backward slash ( \ ) before the directory name when creating a path.
I found some nice information how to add other custom actions in thunar:
Notice: gksu is no longer usable in Zorin. Replace "gksu" with "pkexec" or if GUI programs don't open with this command replace it with "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY".
Some programs used here in the commands are not installed in Zorin, so you have to install them first or replace them with other Zorin programs.
It is a Line. You find it on a german Keyboard-Layout on the Key with the ''bigger than'', ''smaller than'' Symbols: >< (man kann den Strich mit alt gr aktivieren)
But to come to the Topic with the Path: You could simply type in the Path in the Terminal. Isn't this an Option? I mean in Thunar, you see where you are. so, You could open the Terminal and write it in.
They work, but I had to install mousepad separately and would like to know what the command for the action "Edit as root" should be in order to edit a file with Xed (or Nano).
I do not have access to this computer at the moment. But when I opened it as root yesterday, none of my five user-defined commands were displayed in the right-click menu.