|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Code:
#! /bin/sh Code:
#!/bin/sh You do not explain what you entered after choosing "link to application". How can we know if you made a mistake or not? Why double click? In my system that would start it twice!
__________________
Henk van Velden |
|
||||
|
If you wanted to run it from your desktop say, I would plant a copy on the desktop, right click and then allocate an icon to it, in this case try and find one to do with a battery, you could also download a custom icon set of the internet to seperate the icon from the rest of your icons.
|
|
||||
|
Quote:
You're right I should have listed what I was doing - sorry. General tab: I entered a name for the shortcut Permissions tab: Left as is. Application tab: >Name: Entered the same name as in general tab >Command: Browsed to the script. >Advanced options: Enabled feedback. I said double click as I'm from windows and everything there is double click. Old habits die hard. Quote:
On thing, should the script filename have an extension or not or doesn't it matter?
__________________
IBM Thinkpad X60s | Intel L2400 1.66Ghz | Mesa DRI Intel 945GM video | 3GB Ram openSuSE 11.1 | Linux 2.6.27.29-0.1 pae i686 | KDE 4.3.3 |
|
||||
|
Quote:
You say you browsed to the script. I hope the resulting string is an ABSOLUTE path to your script No further commentss on the double click (some people like it to wear out their fingers ).
__________________
Henk van Velden |
|
||||
|
I seem to have a problem with the script. It's not doing anything. I tried it as root too to make sure it was not a permission problem.
The script is set to be executable so I'd expect clicking on it would execute it - right? When I try launch the script directly it looks like wine is trying to launch it.
__________________
IBM Thinkpad X60s | Intel L2400 1.66Ghz | Mesa DRI Intel 945GM video | 3GB Ram openSuSE 11.1 | Linux 2.6.27.29-0.1 pae i686 | KDE 4.3.3 |
|
||||
|
this is not true, you can use either #! /bin/sh or #!/bin/sh ... both are valid
__________________
My site: http://microchip.bplaced.net My repo: http://download.opensuse.org/repositories/home:/microchip8 SUSE Unbound Forum: http://suseunbound.lefora.com Do coders dream of sheep() ? |
|
||||
|
Hm, when you tested it you are most pobably correct. I always learned it without (on several Unixes and for more then 30 years now). In any case it is not his main problem.
__________________
Henk van Velden |
|
||||
|
I never would think that you had not tested your scripts first, before trying to make it into a clickable thing. Test it from a console/terminal first!
So first make your script working. BTW it should run as root, so just starting it from a user GUI won't work either. Your command inside the icon should be something like Code:
su /path/to/the/script
__________________
Henk van Velden |
|
||||
|
Quote:
.
__________________
Henk van Velden |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|