View Full Version : [xubuntu] How to start "xubuntu xfce4" instead of stock xfce4
December 14th, 2011, 10:25 AM
When starting a new x head from command line how to I start up the xubuntu styled xfce4 instead of the stock one?
I've tried startxfce4 and xfce4-session both resulting in the stock xfce environment.
If it matters this is over an x2go connection.
Thanks in advance.
December 14th, 2011, 03:16 PM
There is only one xfce. If you have installed xubuntu-desktop, then you are running "xubuntu's" xfce. The difference between xubuntu-desktop and xfce4 is that xubuntu-desktop comes with xfce4 + some default settings + some extra packages and tools.
December 14th, 2011, 04:24 PM
It's true that launching startxfce4 is equivalent to choosing 'Xfce session' in the login manager, whereas there is no easy way to launch the 'Xubuntu session' from the CLI.
It has always been a mystery to me why there would be two very similar session choices. They both launch the same desktop with the same apps and same panels but the styles may be subtly different: colors, wallpaper, fonts, icons.
In your case just stick to the Xfce one and set it up to your liking.
December 14th, 2011, 08:27 PM
Good to know.
December 15th, 2011, 05:33 AM
Interesting, so how are the settings stored then? How does ubuntu launch the "xubuntu session"?
Also, if there is no way to start the xubuntu session from command line will session settings be persisted through logins with xfce4 as long as I continue to use the same user?
December 15th, 2011, 03:37 PM
After experimenting a bit, I found that after using startxfce4 or the Xfce session login, I end up with a slightly different desktop. Looks like the default Tango Ubuntu theme.
However, once I make changes to the appearance, they get applied to both the Xfce and Xubuntu sessions. From then on, they look the same. So really, there is no need to worry. If it's a bug, it's the smallest I've ever seen.
December 15th, 2011, 05:51 PM
Try this: Instead of using startxfce4, use startx and the DISPLAY_SESSION environment variable.
env DISPLAY_SESSION=xfce startx
env DISPLAY_SESSION=xubuntu startx
After X comes up, check your XDG_CONFIG_DIRS and XDG_DATA_DIRS environment variables.
xfce will have:
while xubuntu will have:
December 15th, 2011, 08:52 PM
On my system:
1) Using startx fails. I have to use startxfce4. Setting the variable (e.g. env DISPLAY_SESSION=xfce startxfce4) does nothing and the variables set later are /usr/share and /etc/xdg alone
2) Choosing the Xfce vs Xubuntu in LightDM does set the environment variables as described
3) /etc/xdg/xdg-xfce and /usr/share/xfce don't exist!
So that might explain why we get a plain looking, default Xfce desktop upon first entering the Xfce session. Looking at the Xubuntu-specific directories, they seem to contain some extra default settings. Nothing critical but it might be a good idea to simply create symlinks from them to the missing xfce directories.
sudo ln -s /etc/xdg/xdg-xubuntu /etc/xdg/xdg-xfce
sudo ln -s /usr/share/xubuntu /usr/share/xfce
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.