View previous topic :: View next topic |
Author |
Message |
guy4286 n00b
Joined: 27 Jun 2003 Posts: 36
|
Posted: Fri Oct 14, 2005 3:24 am Post subject: automatically run a script when kde starts |
|
|
I have two questions actually:
1. How do I setup a script to run automatically every time I boot into KDE. I'd like to setup a script which runs: Code: | /etc/init.d/xinetd restart | ...so that I don't have to manually type this every time I boot into KDE.
2. Somehow I lost my "tasks" panel on my taskbar. Every time I restart KDE I have to manually add this by right clicking and selecting Add to Panel > Applet > Taskbar. How do I get it to stay???
Lastly, in case there was any doubt, I'm using KDE on Gentoo. _________________ "I'll be down in two shakes of a lambs tail!" |
|
Back to top |
|
|
vladgrigorescu Guru
Joined: 11 Jan 2005 Posts: 360
|
Posted: Fri Oct 14, 2005 3:29 am Post subject: Autostart |
|
|
Put it in ~/.kde/Autostart/ Make sure it is executable (chmod +x .kde/Autostart/filename).
Also, what version of KDE are you using? |
|
Back to top |
|
|
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Fri Oct 14, 2005 11:07 am Post subject: |
|
|
If you're using KDM you might put your commands in /usr/kde/3.4/share/config/kdm/Xsession
That's what I found out recently after a long time of using the Autostart method; the advantage of this is that it runs for each user which logs in, so you don't have to copy the Autostart file over to each users home directory! _________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
tlailax Apprentice
Joined: 22 Feb 2004 Posts: 187
|
Posted: Fri Oct 14, 2005 11:14 am Post subject: |
|
|
why would you need to restart xinetd ?
the kde startup is not a proper place to run that i think.
is it missing from startup ? in which case do "rc-update add xinetd default" from console |
|
Back to top |
|
|
jamiethehutt n00b
Joined: 04 Oct 2004 Posts: 66 Location: Scotland!
|
Posted: Fri Oct 14, 2005 11:22 am Post subject: |
|
|
tlailax wrote: | why would you need to restart xinetd ?
the kde startup is not a proper place to run that i think.
is it missing from startup ? in which case do "rc-update add xinetd default" from console |
That's my question...
xinetd should not be restarted with KDE... _________________ "Someday, he thought, it'll be mandatory that we all sell the McDonald's hamburger as well as buy it; we'll sell it back and forth to each other forever from our living rooms. That way we won't even have to go outside." - A Scanner Darkly By PK Dick |
|
Back to top |
|
|
|