On 3/31/25 14:36, mick.crane wrote:
Xfce4
I've loads of Perl scripts dotted about in different directories I'd
like to select them in Thunar and run them in a terminal with a click or
two.
"Open terminal here" in Xfce desktop is very handy but still have to
list the directory contents, find the one I want and type or paste it's
name.
Is there a way to get Thunar to run selected file in a terminal?
mick
I added a Custom Action to Thunar as follows:
Thunar -> Edit -> Configure custom actions...
-> + (Add a new custom action)
Pop-up dialog "Custom Actions"
-> Basic
Name Run
Description Run an executable file in xterm
Command xterm -e "/usr/bin/env %f ; read -p 'Press Enter to close
terminal'"
Keyboard Shortcut None
uncheck Use Startup Notification
Icon No icon
-> Appearance Conditions
File Pattern *
Appears if selection contains
check Other Files
-> OK
-> x (Close dialog window)
Thunar -> navigate to directory containing executable file
Right-click on file -> Run
David