Setting MATE as Default Desktop Environment for startx on Fedora

By Zhiqiang Ma On Dec 12, 2012

I ever discussed Starting KDE from Command Line by startx for KDE and GNOME. Recently, I installed MATE desktop on Fedora 17 and am very happy with it—dear, Gnome 2 is back. However, I checked the /etc/X11/xinit/Xclients script which is called by ‘startx’ and it only includes ‘startkde’ and ‘gnome-session’ without support to MATE. But that’s find, let’s configure it by ourselves.

Let’s find a place to put our configuration. Check the ‘starx’ script and I find:

userclientrc=$HOME/.xinitrc
sysclientrc=/etc/X11/xinit/xinitrc

...

   if [ -f "$userclientrc" ]; then
        client=$userclientrc
    elif [ -f "$sysclientrc" ]; then
        client=$sysclientrc

That’s very clear now. We can set our one $usersciptrc (‘$HOME/.xinitrc’) and ‘startx’ will invoke it instead of the system-wide one.

Like Gnome 2, MATE’s process name for the session is ‘mate-session’ (Gnome use gnome-session). We can then create a .xinitrc under $HOME like this:

$ cat $HOME/.xinitrc
exec mate-session

After setting Fedora’s runlevel to multi-user (3) and booting it to the virtual console, invoke ‘startx’, then ‘MATE’ desktop happily appears ;)

MATE on Fedora 17

MATE on Fedora 17

By: Zhiqiang Ma Last updated: Dec 12, 2012 Views: 802
Tags: , , , , , , ,

About Zhiqiang Ma

Zhiqiang Ma is a PhD candidate at Dep. of CSE, HKUST. He is interested in system software for cloud computing, virtualization of large-scale distributed system, etc. Find Zhiqiang on Facebook, Twitter, LinkedIn and Google+.

2 Comments on Setting MATE as Default Desktop Environment for startx on Fedora | Add Comment
Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.