Re: Using gconftool-2 tool to add icons on menu panel for the users
- From: Qihua Wang <qihua wang alcatel com>
- To: Mark McLoughlin <markmc redhat com>
- Cc: gconf-list gnome org
- Subject: Re: Using gconftool-2 tool to add icons on menu panel for the users
- Date: Fri, 30 Jul 2004 17:18:45 -0400
Hi Mark,
I still have a problem to see the icon appears on the panel.
As user of myself, I did the following.
%gconftool-2 --type string --set /apps/panel/default_profiles/medium/objects/00000004/object_type launcher-object
%gconftool-2 --type string --set /apps/panel/default_profiles/medium/objects/00000004/launcher_location
applications:///netscape.desktop
%gconftool-2 --type string --set /apps/panel/default_profiles/medium/objects/00000004/panel_id 00000002
%gconftool-2 --type int --set /apps/panel/default_profiles/medium/objects/00000004/position 100
%gconftool-2 --type bool --set /apps/panel/default_profiles/medium/objects/00000004/panel_stick false
As you suggested, I added new object to list.
%gconftool-2 --type list --set /apps/panel/default_profiles/medium/general/object_id_list --list-type string
"[00000001,00000002,00000003,00000004]"
I verified that the object 00000004 has been created. But under the general directory, %gconf.xml file didn't have entry for
the 00000004 object under object_id_list entry.( I am not sure it is a must or not, at least gconftool-2 didn't update it)
I did not see the icon on the top panel. I loged out and login again, I didn't see.
What could be missing.
-----
I also noticed that in my $HOME/.gconf/apps/panel/default_profiles, there is profiles directory as well. Looks like the panel
takes the profile directory as its preference setting not the default_profiles.
Then I did the same thing to set to profiles as follow.
%gconftool-2 --type string --set /apps/panel/profiles/default/objects/00000004/object_type launcher-object
%gconftool-2 --type string --set /apps/panel/profiles/default/objects/00000004/launcher_location %applications:///netscape.desktop
%gconftool-2 --type string --set /apps/panel/profiles/default/objects/00000004/panel_id 00000002
%gconftool-2 --type int --set /apps/panel/profiles/default/objects/00000004/position 100
%gconftool-2 --type bool --set /apps/panel/profiles/default/objects/00000004/panel_stick false
%gconftool-2 --type list --set /apps/panel/default_profiles/medium/general/object_id_list --list-type string
"[00000001,00000002,00000003,00000004]"
Still I saw nothing.
Any thoughts?
Thanks for your help!
-Qihua
Mark McLoughlin wrote:
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.
--
----------------------------------------------------------------
Qihua Wang qihua wang alcatel com
ALCATEL BND Phone: 613-599-3600 x6682
600 March Road, Kanata Ont., K2K 2E6 613-784-6682
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]