Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automatically run a script when kde starts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
guy4286
n00b
n00b


Joined: 27 Jun 2003
Posts: 36

PostPosted: Fri Oct 14, 2005 3:24 am    Post subject: automatically run a script when kde starts Reply with quote

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
View user's profile Send private message
vladgrigorescu
Guru
Guru


Joined: 11 Jan 2005
Posts: 360

PostPosted: Fri Oct 14, 2005 3:29 am    Post subject: Autostart Reply with quote

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
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Fri Oct 14, 2005 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
tlailax
Apprentice
Apprentice


Joined: 22 Feb 2004
Posts: 187

PostPosted: Fri Oct 14, 2005 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message
jamiethehutt
n00b
n00b


Joined: 04 Oct 2004
Posts: 66
Location: Scotland!

PostPosted: Fri Oct 14, 2005 11:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum