Run program before KDE startup
I am looking for a way to run some startup scripts when a user logs into KDE. Normally, I would put the scripts in ~/.kde/Autostart, but this script needs to be run *before* KDE goes through its initialization process. I would also like the scripts to run as the user that starts the KDE session.
I tried placing the script in ~/.xsession and ~/.xprofile, but that didn't seem to work. Anybody have any idea if such a startup config for KDE even exists? Thanks. |
Try editing /usr/bin/startkde by putting your startup script at the beginning. Startkde is a script that, not surprisingly, starts kde; it runs with the privilege of the user starting kde. Should work in theory.
|
Loading Applications at Startup
Check this page out http://suseroot.com/suse-linux-tweaks/load-startup.php . It tells you how to load an app at startup by editing the .xinitrc.template file in your home folder.
Good luck! |
Oh this is easy! You put your stuff that you want to load up into ~/.xinitrc. I'm starting the KDE from here because I uninstalled xdm/gdm/kdm.
Code:
$: cat ~/.xinitrc |
Hi all,
Anyway to startup a script but without login in? Thanks. |
Quote:
|
Quote:
Basically what i want my script do is if boot up (without user login) it will pop-up an xterm on remote worstation (e.g. Solaris / Windows). Need your advise, thanks :scratch: |
Quote:
|
.xinitrc does not work here
I thought I had finally found the answer. I want bittorrent to start when I logon. Most of the time, it's only seeding and I can forget to start it.
This is the .xinitrc in my home folder: Quote:
I also tried adding a symlink to /~/.kde/Autostart but it does not autostart. I'd prefer to make provision at the user level and just leaving the bittorrent window open when shutting down seems crude and dirty. .xinitrc is not mentioned in the .xsession-errors file but the symlink is: Quote:
Perhaps this is a question about bittorrent? Gnome, evidently, has a gui command for adding startup files. There is a dearth of information about this. I've tried Mandriva and kde sources. I'll keep on looking but linuxquestions in my experience is the best place to get answers. :Pengy: |
All times are GMT -5. The time now is 06:12 AM. |