LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-23-2003, 01:49 PM   #1
dmx9595
Member
 
Registered: Jun 2003
Location: Canada,Ontario
Distribution: Debian and Gentoo
Posts: 135

Rep: Reputation: 15
X,kde startup wont load my scripts?


hey, how do you get your scripts to autoload when X(kde) starts, ive tried putting my code in ~/.xinitrc i thought that runs on startup but its not.. and i tried ~/.kde/Autostart/myscriptfile just as a guess but didnt run either. and it does work if i run it normally, where can i put files that will run when X starts up?
 
Old 06-23-2003, 06:56 PM   #2
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
If putting the lines in you .xinitrc file isn't working you can always try my workaround by sticking this in your .bash_profile:
Code:
ses=$(printenv | grep DISPLAY)
if [ -n "$ses" ]; then
'proggies and scripts you wanna run'
fi
but the .xinitrc should work.

slight
 
Old 06-24-2003, 01:50 AM   #3
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
I think .xinitrc is read when using startx. Running from run level 5 and using a graphical login will bypass .xinitrc.

To make things work in ~/.kde/Autostart first right click on the desktop and select Create New -> Link To New Application. Make that link run your script. Make sure you test it. Then move the icon file from ~/Desktop to ~/.kde/Autostart.

That is how I autoload my Superkaramba and various startup things in Kde.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load KDE (instead of GNOME) on startup? l2g Slackware 12 12-16-2010 02:28 PM
execute shell-scripts at kde startup supersucker Linux - Newbie 10 10-28-2005 10:47 AM
KDE wont startup nmares Linux - Software 3 10-19-2004 02:24 PM
kde wont load while eth0 is up cadj Linux - Networking 1 05-28-2004 12:36 AM
Load command at KDE startup, possible? thcmwz Linux - Software 1 09-19-2003 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration