LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-04-2005, 10:25 PM   #1
Permaximus
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Default GUI Config File


I posted a while back asking how to simply start an x session with a different gui. I know it can be done but nobody can help me. The only suggestion I got was to change the default in the config file. I know I can do this through /sbin/pkgtool but I dont want to have to do that every time I want to start with a different gui, so I decided I was going to write a script to change the file. Anyway, all I really need to know is the location of the file that determines the default gui. I am in slack 10.0. Thanks.
 
Old 11-04-2005, 10:56 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
first of all, the easiest way is by using xwmconfig, or if you prefer the full path /usr/X11R6/bin/xwmconfig. pkgtool is a configuration tool for the system. xwmconfig only changes the default gui of a user and is allowed to be executed by a user, not only root.
If this is used by a user and not root it will not change the default of the system. It will create ( or alter if it exists) the file .xinitrc in the home directory of a user. Read the man page for more info:
Code:
man xwmconfig
Anyway if this does not satisfy your needs either you may have a default GUI (lets say KDE) for a user and start an alternative gui by giving the full path to startx of the executable of the gui:
Code:
startx /usr/X11R6/bin/blackbox
will start blackbox no matter what the default GUI is for this user.
If you want an even simplier approach you can create a startx script in /usr/local/bin/startx that will take some options and then execute the real startx (/usr/X11R6/bin/startx). For example you may create a script /usr/local/bin that by giving
Code:
startx KDE
will execute
Code:
/usr/X11R6/bin/startx /opt/kde/bin/startkde
.
If a /usr/local/bin/startx script exists, by giving the command startx this will be executed and not the
/usr/X11R6/bin/startx. The system checks /usr/local/bin before it checks /usr/X11R6/bin/. The order the systems checks for paths is:

/usr/local/bin
/usr/bin
/bin
/usr/X11R6/bin
/usr/games
/opt/www/htdig/bin
/usr/lib/java/bin
/usr/lib/java/jre/bin
/opt/kde/bin
/usr/lib/qt/bin
/usr/share/texmf/bin
.

Last edited by perfect_circle; 11-04-2005 at 10:57 PM.
 
Old 11-04-2005, 11:20 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Read startx's man page, it will tell you which file it uses to load. If you're using a graphical login manager, like XDM, KDM or GDM, they use different files, read their man pages.
 
Old 11-05-2005, 01:34 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
If you're using KDM or GDM, they have the option to choose a "session type". This lets you pick whichever WM/DE you want to use.
 
Old 11-05-2005, 01:59 AM   #5
Permaximus
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
Thank you perfect_circle. That post brought a tear to my eye. You are a saint.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
dmix fails to work by default OR with config file Lord Estraven Linux - General 9 12-03-2005 02:18 PM
where is torsmo's default config file? Godsmacker777 Linux - Software 4 03-07-2005 09:38 PM
Where is the iptables default config file stored under SuSe 9.1 skunkburner SUSE / openSUSE 4 02-03-2005 10:10 AM
**Default Config File for Linux Kernel Problems** geogecko Linux - Software 4 02-12-2004 12:45 PM
a working default config file for 2.6 demmylls Linux - General 9 12-25-2003 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:46 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