Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-01-29 17:40:34

shakebake
Member
Registered: 2012-05-14
Posts: 51

[Solved] Thunar - how can you run a script in terminal like Nautilus?

hello,

How can I get Thunar to run a script in a terminal by clicking on the script file?

For example, in nautilus, I can click on the script file and I will get these options:
"run in terminal"  "display" "cancel" "run". I then can select "run in terminal".

but when I click on a script file in Thunar, it just runs without asking if you want to
run it in a terminal. I have script files that need to be run in the terminal because there
are user inputs that need to be entered for the script to work.

Thanks

Offline

#2 2013-01-29 18:52:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] Thunar - how can you run a script in terminal like Nautilus?

Create a Thunar Custom Action to do this.

In Thunar, Edit -> Configure Custom Actions -> Add a new custom action, then:
On the Basic Tab:
   - Name = Run In Terminal
   - Description = Run in Terminal
   - Command = xfce4-terminal -e %f --hold
   - Select an icon if you want
- On the Appearance Conditions tab:
   - select "Other files"

Then in thunar, right-click the script and select the "Run in Terminal" option.

Last edited by ToZ (2013-01-29 18:52:34)


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 ---

Offline

#3 2013-01-29 20:50:22

shakebake
Member
Registered: 2012-05-14
Posts: 51

Re: [Solved] Thunar - how can you run a script in terminal like Nautilus?

Thanks ToZ!

That got it.

Offline

Board footer

Powered by FluxBB