LinuxQuestions.org
Help answer threads with 0 replies.
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 06-10-2011, 10:44 AM   #1
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Can individual users choose their own WM?


I have noticed that if I run xwmconfig as a normal user, any changes won't stick. Of course if I run it as root, the changes do stick but the WM is changed for all users.

Evidently xwmconfig only changes the xinitrc.<WM> file that the link xinitrc points to in the /etc/X11/xinit/ directory.

I was under the impression that if a user had a .xinitrc file in his home directory then that file would determine which WM I would get to use. However, copying the appropriate xinitrc.<WM> file, editing it and making it executable made no difference. The system stubbornly insists on reading from /etc/X11/xinit/xinitrc. I even deleted /etc/X11/xinit/xinitrc with the result that I had no init file.

In order to configure my startup, I have had to edit the appropriate file in /etc/X11/xinit/ but of course the changes then become global (too bad for the other users ).

Am I doing something wrong?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-10-2011, 10:51 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
xwmconfig should copy the selected /etc/X11/xinit/xinitrc.<WM> file to ~/.xinitrc (if you launch it as root it creates the /etc/X11/xinit/xinitrc link, changing the default wm for the system), so you should have your personal wm if you start the system in runlevel 3 and then startx.
if you are using runlevel 4 as default (graphical login) and so also a desktop manager (like gdm, kdm, lxdm, slim and so on), this parses your available /etc/X11/xinit/xinitrc.* files and let you select the desktop session to start from the desktop manager itself, between the choices it find in your system: in this case xwmconfig isn't useful, because the ~/.xinitrc file isn't read.

Last edited by ponce; 06-10-2011 at 11:01 AM. Reason: punctuation
 
2 members found this post helpful.
Old 06-10-2011, 10:54 AM   #3
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
Interesting. Don't have slackware box right now to try it. But did you just try onliner eg.
Code:
exec openbox-session
in .xinitrc file instead of copying from /etc/ ?

Editonce, makes sense. Thanks.

Last edited by saivnoba; 06-10-2011 at 11:01 AM.
 
Old 06-10-2011, 11:13 AM   #4
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722

Original Poster
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by ponce View Post
xwmconfig should copy the selected /etc/X11/xinit/xinitrc.<WM> file to ~/.xinitrc (if you launch it as root it creates the /etc/X11/xinit/xinitrc link, changing the default wm for the system), so you should have your personal wm if you start the system in runlevel 3 and then startx.
if you are using runlevel 4 as default (graphical login) and so also a desktop manager (like gdm, kdm, lxdm, slim and so on), this parses your available /etc/X11/xinit/xinitrc.* files and let you select the desktop session to start from the desktop manager itself, between the choices it find in your system: in this case xwmconfig isn't useful, because the ~/.xinitrc file isn't read.
Got it. GUI login overlooks .xinitrc (even if my login manager is xdm). Since I don't currently have a practical need for runlevel 3, other users will just have to like what I like. (Should I mark this solved)?

@saivnoba, I didn't need a one liner. My .xinitrc was sufficiently different from the system files that I could tell which file was being read.
(Oh, I see you have just seen @ponce's post. I still welcome your contribution).
 
Old 06-10-2011, 11:22 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
a personal advice: if you want to let you users choose their wm, lxdm and slim are *very* lightweight (if you got concern about that) and pretty easy to setup too.
after installing the package, you have only to remember to add the check for the one you select at the top of /etc/rc.d/rc.4

Last edited by ponce; 06-10-2011 at 11:25 AM.
 
1 members found this post helpful.
Old 06-10-2011, 12:30 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
When you use run level 4 and a login manager, each user's preferred environment is stored in $HOME/.dmrc. The login manager will allow each user to select a preferred environment and store that information in $HOME/.dmrc.

In run level 3 non-root users use the xwmconfig tool to copy an xinitrc file from /etc/X11/xinit to the user's home directory. The /usr/bin/startx command will source that file when starting X.

Login managers use *.desktop files to list the available environments. For example, look in the /usr/share/apps/kdm/sessions directory. In those desktop files will be a directive for which script or binary to run to start that environment.

The login manager will source additional files/scripts. If you look at /etc/kde/kdm/kdmrc you will see various files located in the same directory that get sourced.

The run level 3 and 4 sourcing of scripts is different but achieve the same goal.
 
2 members found this post helpful.
Old 06-10-2011, 02:30 PM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
ops, thanks for puntualizing
 
Old 06-11-2011, 12:03 PM   #8
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722

Original Poster
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by ponce View Post
a personal advice: if you want to let you users choose their wm, lxdm and slim are *very* lightweight (if you got concern about that) and pretty easy to setup too.
after installing the package, you have only to remember to add the check for the one you select at the top of /etc/rc.d/rc.4
Thanks for that. slim proved to be just what I needed. This thread is now solved.
 
  


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
mysql for individual users davidstvz Linux - Software 5 08-30-2008 10:55 AM
NTFS vs ext3 permissions on individual users/groups deftone` Linux - General 2 07-23-2006 11:16 AM
Automatically starting programs for individual users at boot johnleemk Linux - General 1 09-13-2004 05:24 AM
setting up VSFTP for individual users and directories filch Linux - Software 0 05-12-2004 11:35 PM
Mounting Windows NT shared folders for individual users Jake_da_Snake Linux - Networking 6 02-28-2004 02:12 AM

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

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