LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-09-2004, 09:57 AM   #1
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 35
KDE 3.2 and xinitrc


I have recently installed KDE 3.2, and I like it, but I have one problem.
Previously (with KDE 3.1.4), /etc/X11/xinit/xinitrc would get executed when X started, and run xmodmap on /usr/X11R6/lib/X11/xinit/.Xmodmap. Now it appears to not get run. I have symlinked xinitrc into ~/.kde/Autostart, but that only works locally, and I would like a neat global solution.
Currently I start kdm from /etc/inittab, with the line:
Code:
x:5:respawn:/opt/kde/bin/kdm
and my xinitrc looks like this:
Code:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi
What I really want (I think) is to have X start on boot, and for xinitrc to load kdm, but if I substitute "startx" for "/opt/kde/bin/kdm" I get errors. Could anyone help?
Guy
 
Old 02-09-2004, 10:11 AM   #2
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
Re: KDE 3.2 and xinitrc

Quote:
Originally posted by guygriffiths

What I really want (I think) is to have X start on boot, and for xinitrc to load kdm, but if I substitute "startx" for "/opt/kde/bin/kdm" I get errors. Could anyone help?
To do this all you have to do is put a script which starts up kdm in /etc/rc5.d/ or however your bootscripts are handled(i didnt see which distro u use).that should start X and kdm when u boot up.
 
Old 02-09-2004, 10:17 AM   #3
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Original Poster
Rep: Reputation: 35
The line in inittab pretty much does this, but unfortunately, X does not seem to source /etc/X11/xinit/xinitrc when it is started by kdm.
 
  


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
.xinitrc and modmap have no effect on KDE? Erik_FL Slackware 5 09-20-2005 03:54 AM
Problem xinitrc, Gnome starts instead of KDE McCloud Debian 7 09-05-2004 08:03 AM
dpi font | gdm | kde DE | xinitrc.kde | Slackware 10 acummings Slackware 2 07-28-2004 10:28 PM
Could I .xinitrc for this.... JROCK1980 Linux - Software 5 02-17-2004 05:57 PM
.xinitrc unimaginative Linux - Newbie 1 01-03-2004 10:53 PM


All times are GMT -5. The time now is 01:56 PM.

Main Menu
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