LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-18-2005, 09:48 PM   #1
seriesx4
Member
 
Registered: Mar 2005
Location: Sweden
Posts: 64

Rep: Reputation: 15
Changing default X-session


When I type 'startx' Gnome is launched.
Where do I change the default X-session to KDE instead?

I would appreciate a technical answer, because the point is not to just change the default x-session but rather a curiosity about how things really works. Otherwise I could just switch to runlevel 5 in inittab like before.
 
Old 09-18-2005, 10:54 PM   #2
seriesx4
Member
 
Registered: Mar 2005
Location: Sweden
Posts: 64

Original Poster
Rep: Reputation: 15
To continue the monologue: I just edited /etc/syskonfig/desktop
 
Old 09-18-2005, 10:55 PM   #3
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
i believe what you would be looking for is startkde.
what you need to do is create a file in your home directory called .xsession (mind the dot at the beginning). this is a hidden file so you may not see it right away. but in this file put this
Code:
exec /usr/bin/startkde
for further information this is a great way to start applications and what not that you want to run at startx.

hope that this helps
 
Old 09-18-2005, 10:56 PM   #4
caged
Member
 
Registered: Jan 2004
Location: new zealand
Distribution: Mandrake,Slackware
Posts: 165

Rep: Reputation: 30
Hi.

sorry i dont know a more techi answer but there might be a display manager on your computer like the gnome display manager (gdm) there are a few different flavours i think kde has a kdm aswell. this app allows you to chose which of the installed gui shells to use and set as the default.

sorry if thats no help.
have fun.
Ben.
 
Old 09-18-2005, 11:07 PM   #5
seriesx4
Member
 
Registered: Mar 2005
Location: Sweden
Posts: 64

Original Poster
Rep: Reputation: 15
There's some good points, I'll look more into it.
 
Old 09-19-2005, 08:00 AM   #6
Dankles
Member
 
Registered: May 2004
Location: /dev/null
Distribution: Slackware
Posts: 245

Rep: Reputation: 31
The best way to change your Window manager is to edit your ~/.xinitrc file

to boot KDE this will problably work
Code:
echo "exec startkde" > ~/.xinitrc
to boot gnome
Code:
echo "exec gnome-session" > ~/.xinitrc
 
Old 04-04-2013, 01:51 PM   #7
pnelsonsr
LQ Newbie
 
Registered: Sep 2010
Location: WA
Distribution: Fedora
Posts: 6

Rep: Reputation: 3
Quote:
Originally Posted by Dankles View Post
The best way to change your Window manager is to edit your ~/.xinitrc file

to boot KDE this will problably work
Code:
echo "exec startkde" > ~/.xinitrc
to boot gnome
Code:
echo "exec gnome-session" > ~/.xinitrc
and for XFCE...
Code:
echo "exec startxfce4" > ~/.xinitrc
[/QUOTE]
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
my kde session keeps changing to gnome, how do i make it my default? mojarron Slackware 6 03-19-2005 09:24 PM
Changing default Session WWMPCDD Linux - Newbie 4 10-27-2004 07:18 AM
Default System Session confidential007 Fedora 4 07-02-2004 12:06 AM
KDE as default session Cybers19 Fedora 5 06-13-2004 10:21 PM
What files does your default X session look at? davidcrawley Linux - Software 1 02-16-2004 03:05 PM


All times are GMT -5. The time now is 07:31 AM.

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