[desktop-switcher] store panel layout when switching
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Netbook Remix |
Fix Released
|
High
|
Neil J. Patel |
Bug Description
Note: I'm using desktop-switcher on a jhbuild sandbox, not in "real" netbook system. So I've used desktop-switcher from desktop mode to netbook, then to desktop mode again.
Current Behavior:
Switching from netbook to desktop mode, the panel layout is changed to Ubuntu default layout
Desider Behavior:
If the user already have a custom panel layout, restore it when switching back to desktop mode. If not, don't use ubuntu default panel layout, but the default one defined by system (in my case, the one in /opt/gnome, not the default one in /usr).
########
OK, I'll try to explain it better, I know previous phrases could be a little obscure. The main idea is make desktop-switcher a non-branded tool, 'cause currently it seems locked on Ubuntu and UNR default layouts. Maybe new GnomeSession 2.24 features could be used/needed in order to make this better.
Scrolling the code, I found that desktop-switcher if forced to always uses the file "classic-
IMHO could be better something like:
1. on first startup/launch run a "configuration tool" (hidden, no user visible UI) and change relevant GConf keys in order to set up the netbook mode. This will change GConf keys only in user database, keeping the system database untouched.
2. on first switch from netbook to desktop mode, desktop-switcher could perform a `gconftool-2 --dump /apps/panel > ~/.cache/
3. on next switch from desktop to netbook mode, desktop-switcher could perform another dump, storing this time a
~/.cache/
4. go on saving and restoring layouts on switches.
About the usage of new features in GnomeSession 2.24, those are relate to autostart conditions (see [1]), in order to check if netbook remix is performing its first startup/launch and run the first configuration phase described in previous point 1). Maybe the same desktop-switcher could be used as first time configuration tool, providing a --first-run command line option or similar.
Is this totally crazy? :-)
[1] http://
Changed in netbook-remix: | |
status: | Fix Committed → Fix Released |
I've actually already done something along the same lines, but haven't managed to port the code over to desktop-switcher unr yet. I'll get on this as it won't be too hard to port the patch.