[SOLVED] Can individual users choose their own WM?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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).
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.