Re: Using gconftool-2 tool to add icons on menu panel for the users
Mark McLoughlin <[email protected]>
| Newsgroups | gmane.comp.gnome.lib.gconf |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Thu, 2004-07-29 at 18:51, Qihua Wang wrote: > I try to using gconftool-2 to add extra icons on the top menu panel. > > As a super user, I did the following. > > gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --owner=panel --type string --set > /apps/panel/default_profiles/medium/applets/00000002/object_type bonobo-applet > > gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --owner=panel --type string --set > /apps/panel/default_profiles/medium/applets/00000002/panel_id 00000002 > > gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --owner=panel --type int --set > /apps/panel/default_profiles/medium/applets/00000002/position 50 > > gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --owner=panel --type string --set > /apps/panel/default_profiles/medium/applets/00000002/bonobo_iid OAFIID:GNOME_TasklistApplet > > gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --owner=panel --type bool --set > /apps/panel/default_profiles/medium/applets/00000002/panel_right_stick false > > It created the %gconf.xml under /etc/gconf/gconf.xml.defaults/apps/panel/default_profiles/medium/applets/00000002 > directory. > > But I didn't see the icon on the panel. Have you read http://www.gnome.org/learn/admin-guide/2.0/ ? What you are doing is setting up an applet in the defaults database - this means that you're setting things up so that when a new user logs in for the first time they'll see this applet. Users with existing panel configuration won't see the applet. If you drop the --config-source and --direct you'll be setting the values on your own configuration which sounds like what you want. You can also drop --owner-panel, its meaningless. I think the final thing you'd need to do to make it work is append "00000002" to applet_id_list. Something like: $> gconftool-2 -s /apps/panel/default_profiles/medium/general/applet_id_list -t list --list-type string "[(existing list here),00000002]" Cheers, Mark.