Keeping this on-list... -- -[ bash fun -> :(){ :|:&};: // Numbers 6:22-26 ]-
Begin forwarded message:
On Tue, Aug 2, 2011 at 1:53 AM, Martin Gräßlin <mgraesslin kde org> wrote:On Tuesday 02 August 2011 01:16:15 you wrote:
May I ask why exactly you need to adjust the desktop layout? Maybe it is just the wrong
approach? In our opinion the desktop layout belongs to the desktop shell and should therefore
only be changed by the desktop shell and not by any third party process.
Even without this change on our side the behavior was more or less undefined as the
settings would not have been persisted and most likely the pager plasmoids would not have
updated their view.
Sure. This is for VMware's (not to be confused with Ubuntu's) Unityfeature. You could imagine a user doing the same with NX or perhapsanything else offering a rootless X experience.Imagine you have two desktop sessions, one on your local computer andthe other in a virtual machine or on a remote host. Rather thaninteract with remote applications entirely within a single window(such as within a VM console embedded inside VMware Workstation,VirtualBox, or what have you, or an independent X server root windowon Mac OS X), you're allowed to pull the individual applications'remote windows out and interact with them as you would anything else.This means interleaving VM/remote windows with your local windows'stacking order, grouping them as you'd like on different desktops,etc.To do this, however, it's best (well, more or less mandatory) if thelocal and remote geometry, desktop layout, etc. match. For us, weconfigure the guest VM's desktop layout to match that of thevirtualization host. So if running on a Kubuntu host w/ 4 desktops ina 2x2 config, upon entering Unity we reconfigure the guest VM to matchthat same 2x2 layout. (We revert to whatever the original layout wasat exit, too.)The atom is still used and in fact our KCM does nothing else then changing the atom.
Nevertheless I highly recommend to not change this atom from a 3rd party application as that
changes the state of the desktop shell and can lead to user problems especially as the
changes of 3rd party applications are not persisted.
Hm, okay. Points taken. I'll admit that we've done a suboptimal jobw.r.t. guest VM code integrating correctly, and I'm trying to do abetter job with that now.I apologize if I'm going off-topic re: this list's charter, but what'sthe alternative? Having remote control of the desktop layout is amust-have from our POV. Just as KDE's session manager supports bothD-Bus and XSM, if we assume there are programmatic KCM hooks (*reallywaving my hands here*), would it really be that much trouble to havewrites to the _NET_DESKTOP_LAYOUT atom be handled internally the sameway as someone going through KCM?Thanks much. - Ryan
|