LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   changing desktop manager and window manager (https://www.linuxquestions.org/questions/red-hat-31/changing-desktop-manager-and-window-manager-419513/)

Tux 02-25-2006 03:54 PM

changing desktop manager and window manager
 
How do I change the desktop and/or window manager that X boots when I use startx. On slackware you can use xwmconfig to easily change it, but I have yet to find how to do it in fedora 4. any help welcomed.

Lenard 02-25-2006 08:19 PM

Review; man switchdesk

enzlop 04-04-2006 10:45 AM

I'm trying to do the same. man switchdesk, didn't work. Someone has another idea.

Regards,

Enzo

Lenard 04-04-2006 11:42 AM

Most distros come with switchdesk, if your distro does not then find the information (read the release notes or visit the web site for your distro for this info).

Basically switchdesk is used to switch the default desktop as in; switchdesk KDE

Sometimes you may have to manually edit the ~.xclients and/or ~.xclients-default file and state which desktop to use, example;

Code:

WM="startkde"
WMPATH="/usr/bin /opt/bin /usr/local/bin /usr/X11R6/bin"

for p in $WMPATH ; do
        [ -x $p/$WM ] && exec $p/$WM
done

exit 1


enzlop 04-04-2006 01:56 PM

Finally I found the file .desktop at $HOME.
This is the contents:
DESKTOP=mwm

This is the way to choose the window manager. After this file is read in the file Xsession.
This is the part of the file:


if type -p "$DESKTOP" > /dev/null; then
exec /bin/sh -c "$DESKTOP"
else
exec /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
fi

Now I have a new problem.... when I put mwm as my window manager the system initialize good but after a seconds it hangs, like waiting for something else. BUT when I restart in text mode and I excecute xinit and after from the terminal windows opened mwm& all works OK!!

Some have any idea.

Enzo


All times are GMT -5. The time now is 01:50 AM.