Kde: open konsole window when running script
hi,
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? -sunpascal |
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. |
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. -sunpascal |
right click the file and hit run in terminal.
...drkstr |
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.
|
Quote:
"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:00 AM. |