You are not logged in.


I need to create two custom actions in Thunar. First is to copy the filename, including extension if any, to the clipboard. The second one is to copy the full absolute path of the selected item from the root, "/" to the clipboard.
I had a look at the post in the forum, but could not get it to make it to work.
How can I create these two custom actions in Thunar? All help and suggestions would be welcome.
Last edited by asterix (2025-09-17 03:09:33)
Offline


The script in the link will work - make sure the script is executable and you have selected all options on the appearance tab.
Here are a couple of alternatives that don't require a separate script - just put these commands in the command entry.
Filename to Clipboard
basename %f | xclip -selection clipboardPath to clipboard
echo %f | xclip -selection clipboardOn the Appearance tab, select all options for all files. Note that this will only process one selected file at a time. Also make sure xclip is installed.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


I have xfce4-clipman and not xclip. Will it be possible for this to be done with xfce4-clipman? it appears that xclip is part of the xfce4-clipman package.
Offline


xclip is a separate package. xfce4-clipman doesn't have an interface/api like xclip to do this from within thunar's custom actions.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Thanks that worked. I installed the xclip package and configured the two custom actions.
There ought to be a package available, which will make these custom actions for Thunar available.
Offline


https://gitlab.xfce.org/xfce/thunar/-/issues/245.
This wiki page exists that lists a number of custom actions that can be used.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 562.64 KiB (Peak: 563.48 KiB) ]