I have multiple desktop environments installed, like kubuntu-desktop, lubuntu-desktop. Also I need to switch between these desktops frequently. So is there any possible way that I don't need to log out and log back in to switch my desktop from gnome to kubuntu?
Maybe it will help you: I'm currently running KDE but have LXDE installed, and I managed to launch LXDE panel and some services with just typing
startlxde command. However, this doesn't close KDE's panels, so I would have to kill them manually (with
killall plasma-desktop or so).
I also managed to launch RazorQt with
Unfortunately, I'm not sure whether all DEs provide such bootstrap commands. Xfce4, for example, provides
startxfce4, but it can't be run within an existing X session.
Anyway, I think you don't need to run the whole DE. Try starting just window manager and desktop, e.g.
kwin --replace and
plasma-desktop for KDE.
P.S. Kubuntu is not a DE. KDE is a DE. :-)