LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-12-2004, 06:13 AM   #1
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
.xinitrc problem


Something is baffling me on Slack 10. I recently installed KDE CVS in the home directory of a user called "kdedev". I then wrote an ".xinitrc" file and added the following line "exec /home/kdedev/kde-unstable/bin/startkde" . The problem is that if I run "startx", I'm logged into the old version of KDE. The thing thats confusing me is that if I am logged in as a different user, start a console session and run "startx -- :1" as kdedev, I can log into KDE CVS, but this is a drain on resources since I have to versions of KDE running at the same time.

I don't know if there is a problem with my .xinitrc (it only contains the line I wrote above). Any help will be appreciated.
 
Old 08-12-2004, 06:30 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Did you try ' mv /etc/X11/xinit/xinitrc /etc/X11/xinit/xinitrc.bak '

and run startx again ?
 
Old 08-12-2004, 07:07 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Original Poster
Rep: Reputation: 73
Angry

I tried that and it still gives me the same problem. Could there be a script somewhere thats preventing .xinitrc from the users home directories from being read?
 
Old 08-12-2004, 07:41 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
I am reading the startx script, it is clear for me :
Code:
userclientrc=$HOME/.xinitrc
...
sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
...
if [ -f $userclientrc ]; then
    defaultclientargs=$userclientrc
elif [ -f $sysclientrc ]; then
    defaultclientargs=$sysclientrc
fi
...
So logically, if it find your .xinitrc file, it is supposed to execute it instead of /usr/X11R6/lib/X11/xinit/xinitrc which is a link to /etc/X11/xinit/xinitrc.<window manager>

Did you add the line :
#!/bin/sh

at the top of your script and is it executable ?

For me the best to do is :
cp /etc/X11/xinit/xinitrc.kde ~/.xinitrc

And change only the last line to exec your cvs KDE

Last edited by Cedrik; 08-12-2004 at 07:44 AM.
 
Old 08-12-2004, 08:33 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Original Poster
Rep: Reputation: 73
Smile

I did as you said and aslo found out that I had to add the following line to .xinitrc "source .bash_profile". Now everything works fine and my kdedev user can log into KDE CVS version without any problems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem xinitrc, Gnome starts instead of KDE McCloud Debian 7 09-05-2004 09:03 AM
.xinitrc problem cruelnovember Linux - Software 3 06-14-2004 09:50 AM
.xinitrc unimaginative Linux - Newbie 1 01-03-2004 11:53 PM
Blackbox and .xinitrc problem firefly2442 Linux - Software 5 10-24-2003 12:52 AM
.xinitrc nakkaya Linux - Software 1 04-11-2003 04:12 PM


All times are GMT -5. The time now is 06:30 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration