Daniel Molketin wrote about Xephyr, a better application for nesting X-servers (like xnest). I did not yet try Xephyr because it is not in Gentoo's portage (is it? What name is it?) so I had to look for another easy way of programming KDE 4 apps. And in fact, it is the most simple one: just use a virtual desktop!
So, the simple steps:
- Allow other users in your current (kde 3) X session:
$ xhost +
- Become your kde4 user:
$ ``su kdedev``$ ``cd ~
- And that's all, now start up your apps:
$ ``dbus-launch dolphin&
This is only useful when you don't need a full blown session to be running, so this way a lot of things could still be done!
tip: Getting confused of K4 apps on a K3 session? In that case it could be useful to change the color scheme of your kde4 user.
$ ``kcmshell colors
And now you just pick a color that does not
combine with your current theme :). This is also useful for the root
user (e.g. a dark-red theme).
Hopefully this is useful for you guys!