View previous topic :: View next topic |
Author |
Message |
newtman12 n00b
Joined: 10 Apr 2004 Posts: 27
|
Posted: Sun Jun 06, 2004 2:24 am Post subject: How do i make a bash (I think) script? |
|
|
Im not really a n00btard but I've just never had to write one. I want to write a script that starts ksmoothdock at KDE startup. I tried making a ~.kde/Autostart/ksmoothdock text file with in it but it didn't work. Any help or a link to a guide would be appreciated. |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Sun Jun 06, 2004 2:33 am Post subject: |
|
|
I believe what you need is a .desktop file not a shell script. Just create a launcher for the app on your desktop and move it to the autostart folder. |
|
Back to top |
|
|
newtman12 n00b
Joined: 10 Apr 2004 Posts: 27
|
Posted: Sun Jun 06, 2004 4:26 am Post subject: |
|
|
thanks that worked |
|
Back to top |
|
|
Ateo Advocate
Joined: 02 Jun 2003 Posts: 2021 Location: Republic of California
|
Posted: Fri Jul 30, 2004 9:20 pm Post subject: |
|
|
PowerFactor wrote: | I believe what you need is a .desktop file not a shell script. Just create a launcher for the app on your desktop and move it to the autostart folder. |
Either will work. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Fri Jul 30, 2004 9:23 pm Post subject: |
|
|
I think the text file would have to have executable permissions though... _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
blue.sca l33t
Joined: 28 Aug 2003 Posts: 680 Location: Mainz, Germany
|
Posted: Fri Jul 30, 2004 9:37 pm Post subject: |
|
|
in general, add at first line to your file and make it executable , then you can add misc commands to this file... _________________ geek by nature, linux by choice
i want my avatar back... thank you
:wq |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Sat Jul 31, 2004 7:08 am Post subject: |
|
|
see the guides at tldp.org . they have a basic and advanced scripting listed there. |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Sat Jul 31, 2004 7:23 am Post subject: |
|
|
Ateo wrote: | PowerFactor wrote: | I believe what you need is a .desktop file not a shell script. Just create a launcher for the app on your desktop and move it to the autostart folder. |
Either will work. |
Cool, I didn't know that. Score one more for kde. |
|
Back to top |
|
|
Beau n00b
Joined: 23 Aug 2003 Posts: 41 Location: Hasselt/Leuven, Belgium
|
Posted: Sat Aug 07, 2004 5:40 pm Post subject: |
|
|
Hi,
I placed the following script in the kde3.2 autostartfolder
Code: |
#! /bin/sh
xmodmap -e "pointer = 1 2 3 6 7 4 5"
karamba /usr/share/karamba/themes/ubermon.theme
kooldock
|
xmodmap and karamba start correct but kooldock doesn't start?!
What's wrong whith the script?
thx,
Beau |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sat Aug 07, 2004 5:46 pm Post subject: |
|
|
Try putting an ampersand (&) at the end of the second two lines. The first line just exits as soon as you run it, but the other two don't. Putting & at the end makes them run in the background - so the third doesn't have to wait for the second line to finish. I bet if you close karamba, kooldock will start.
Try this:
Code: | #! /bin/sh
xmodmap -e "pointer = 1 2 3 6 7 4 5"
karamba /usr/share/karamba/themes/ubermon.theme &
kooldock & |
_________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
Beau n00b
Joined: 23 Aug 2003 Posts: 41 Location: Hasselt/Leuven, Belgium
|
Posted: Sat Aug 07, 2004 6:28 pm Post subject: |
|
|
thanks, that fixed it! |
|
Back to top |
|
|
|