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.
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 clipboard
Path to clipboard
echo %f | xclip -selection clipboard
On 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
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 550.64 KiB (Peak: 551.48 KiB) ]