way to *click* launch apps
Does anybody know of a way besides a kde "Link to application" to launch a shell script by clicking on somehthing, thanks,
slackwarebilly |
How about a GNOME link to application? ;)
I don't think I'm sure what you're asking. |
confirm
is it true that you can set a BASH script executable and just click to launch?
slackwarebilly?:confused: |
You can create a launcher in Gnome that launches the terminal then executes a command. See man gnome-terminal (or man xterm if you prefer). They both have switches to execute code after loading.
As an example, I have shortcuts to ssh to all of my servers. The command looks like this: Code:
gnome-terminal --command="ssh server1.mydomain.com" --geometry=140x40+0+0 |
I don't use gnome
Any idea how to do it across all distro's?
question will this work... making a shellscript executable seems to work, but ti is silent. can I launch a console with with the script and then execute coomands automatically in that console? thanks, slackwarebilly :) |
Quote:
If you have a running shell script, and you want to open a terminal and do something in it, then here's how: Code:
#!/bin/bash Code:
chmod a+x /path/to/script.sh |
thanks
I already know the chmod stuff, and it's not something in particular I'm talking about it's a program I'm developing with some other poeple in the community. What about launching a binary with a click.. you know in kde it looks like a gear (is an executable file)... and to be specific, it is a binary compiled by a C++ script..
thanks all, I'll try the xterm thing slackwarebilly :) |
In KDE, as far as I know, the executable does what you expect it to simply because Konqueror is configured to do that. There's no way to say that a file is going to do what you want when it's clicked by someone else on another system, using a different configuration and possibly a different file manager. The best you can do is make it executable and leave it up to the user to decide how to launch it.
|
I'll ask the guys at autopackage, they do it... somehow
thanks all,
slackwarebilly :D |
autopackages are simply shell scripts that are made +x. Internally, if there is no tty associated then we re-exec the script inside a terminal emulator. Various heuristics are used to determine whether to run xterm, gnome-terminal, konsole or something else. Once the bootstrap procedure has been completed (ie, autopackage is installed) then a fully graphical frontend is available and the shell scripts invoke that instead.
Simple, really. |
thx,
So we just write a script to find the term they are using, thanks,
slackwarebilly :D |
All times are GMT -5. The time now is 05:42 PM. |