-   Linux - Software (
-   -   Kde: open konsole window when running script (

sunpascal 04-11-2006 05:03 AM

Kde: open konsole window when running script

I have a script that I wrote in sh, that I'd like to execute when I click it in Konqueror. Currently, it seems to be running, altough I can't see the output (nor any sign that it is running). I have to open konsole first and type the name of the script each time.
Is there a way to start it by clicking the icon in konqueror file manager?
Some scripts seem to have a gui (not a native kde gui, though, but that's fine). How does that work anyways?


cs-cam 04-11-2006 05:31 AM

Mmmm, not 100% sure what you mean but I'll take a stab here. If you want a script to run every time Konsole then if it were me, I'd put it in my ~/.$SHELLrc file. For most standard installs it'd be ~/.bashrc so try there.

Second, that GUI thing you're talking about. Sounds to me like Xdialog which is nice enough but if it's for your own personal use then go Kdialog, then all the widgets will look native :) Xdialog would be installed on more distros by default though so if you're planning on sharing your script then use Xdialog. If you want you could even be tricky and test to see if Kdialog is installed, if it is use that else use Xdialog. They're made to be compatible so it shouldn't be too hard.

sunpascal 04-11-2006 06:20 AM

sorry for not being specific...

I simply want a konsole window to pop up when I click my script so that I can see its output.
For example in Windows XP a window pops up that shows the output. In kde nothing seems to happen.


drkstr 04-11-2006 10:45 AM

right click the file and hit run in terminal.


cs-cam 04-12-2006 02:49 AM

Or associate scripts in Konqueror with 'konsole -e %s' where I'm just assuming -e behaves the same as xterm which the KDE devs *should* have done.

sunpascal 04-14-2006 09:43 PM


Originally Posted by drkstr
right click the file and hit run in terminal.


hm... there is no "run in terminal"....

"konsole -e %s" doesn't work either, it just opens konsole but does not run my script...

All times are GMT -5. The time now is 05:16 AM.