Awn

gconf applet instance configuration

Asked by Britton F on 2010-06-07

I am trying to rearrange, add, subtract the applets programmatically without using the dock preferences dialogs. I am running 0.4.0 installed by apt on ubuntu 10.04 and am using gconf backend.

I notice that in gconf there is the key /apps/instances/avant-window-navigator/panel-1/panel/applet_list which enumerates the applets on the dock. I have also noticed keys in /apps/instances/awn-applet-xxxxxx/awn-applet-xxxxxx-123456789 get created when you add an applet thru the dock preferences dialog, and its .desktop file with the 123456789 get added to the applet_list key.

I am assuming maybe incorrectly that if one can add a key in gconf for /apps/instances/awn-applet-xxxxxx... and add the .desktop to the applet_list key, that the applet will magically appear.

I am having major difficulty adding the /apps/instances/awn-applet-xxxx key. I have tried something like:
GCONF_CONFIG_SOURCE=xml:readwrite:$HOME/.gconf/apps/instances/awn-applet-xxxxxx gconftool-2 --makefile-install-rule /usr/share/gconf/schemas/awn-applet-xxxxxx.schemas

but i can never get the path right because it creates the key from the schema using absolute paths which doens't have "instances" in it. Furthermore it can't be seen in gconf-editor after i do this.

Is there a better, easier way than manually adding all the individual keys for a particular applet in gconf (in the instances path)?
Does the dock preferences use a Makefile somewhere to create these instance applet keys on the fly? I noticed some makefiles and *.schema-ini files, but am not sure if it is for applet instances or simply just the awn installation.

Any help greatly appreciated. Thank you

Question information

Language:
English Edit question
Status:
Answered
For:
Awn Edit question
Assignee:
No assignee Edit question
Last query:
2010-06-07
Last reply:
2010-06-10
Michal Hruby (mhr3) said : #1

> I am assuming maybe incorrectly that if one can add a key in gconf for /apps/instances/awn-applet-xxxxxx... and add the .desktop to the applet_list key, that the applet will magically appear.

Applets get magically created when you add something to applet_list key. Once they're running they create their instance configuration in awn-applet-xxxx-yyyyy themselves, so you do not have to worry about that.

Britton F (brittonf) said : #2

Thanks Michal, i will give it a test. I've moved on temporarily, however I will be coming back to this, so thanks for the answer!

Can you help with this problem?

Provide an answer of your own, or ask Britton F for more information if necessary.

To post a message you must log in.