From Fedora Project Wiki
(intro)
 
No edit summary
 
Line 1: Line 1:
In Fedora 8 and beyond (GNOME 2.20 and beyond), obvious GUI-based options for configuring different types of clocks in the panel were removed. However, these options were still made available via GConf settings. This how to will instruct you on using <code>gconftool-2</code> to allow [[wikipedia:Coordinated Universal Time|UTC]], [[wikipedia:Unix time|Unix time]], or [[wikipedia:Swatch Internet Time|Swatch Internet Time]] in the panel.
In Fedora 8 and beyond (GNOME 2.20 and beyond), obvious GUI-based options for configuring different types of clocks in the panel were removed. However, these options were still made available via GConf settings. This how to will instruct you on using <code>gconftool-2</code> to allow [[wikipedia:Coordinated Universal Time|UTC]], [[wikipedia:Unix time|Unix time]], or [[wikipedia:Swatch Internet Time|Swatch Internet Time]] in the panel.
== Add another clock applet ==
# Right-click any applet and select "Add to Panel...".
# Drag and drop a "Clock" from the Add to Panel window to a panel of your liking. Move to fit.
== Identify the clock applet in GConf ==
# Run: <pre>$ gconftool-2 --all-dirs /apps/panel/applets</pre> This will list all the GConf directories within <code>/apps/panel/applets</code>, where settings for panel applets are stored.
# If you already had a clock before adding this one, your applet is most likely one of the /apps/panel/applets/applet_* entries. To check which of these entries are what, run: <pre>$ gconftool-2 -S bonobo_iid | grep /apps/panel/applets/applet_</pre> A clock applet will have a <code>bonobo_iid</code> of <code>OAFIID:GNOME_MultiLoadApplet</code>.
# Clock applets have a GConf subdirectory called "prefs", where the pertinent values are stored.
== Editing the settings ==
In the following instructions, replace $GCONF_PATH with the full path to your applet (for example, <code>/apps/panel/applets/applet_1</code>).
=== Displaying UTC time ===
<pre>gconftool-2 -s $GCONF_PATH/prefs/gmt_time -t bool true</pre>
=== Displaying Unix time ===
<pre>gconftool-2 -s $GCONF_PATH/prefs/format -t string unix</pre>
=== Displaying Swatch Internet Time ===
<pre>gconftool-2 -s $GCONF_PATH/prefs/format -t string internet</pre>

Latest revision as of 20:47, 11 August 2009

In Fedora 8 and beyond (GNOME 2.20 and beyond), obvious GUI-based options for configuring different types of clocks in the panel were removed. However, these options were still made available via GConf settings. This how to will instruct you on using gconftool-2 to allow UTC, Unix time, or Swatch Internet Time in the panel.

Add another clock applet

  1. Right-click any applet and select "Add to Panel...".
  2. Drag and drop a "Clock" from the Add to Panel window to a panel of your liking. Move to fit.

Identify the clock applet in GConf

  1. Run:
    $ gconftool-2 --all-dirs /apps/panel/applets
    This will list all the GConf directories within /apps/panel/applets, where settings for panel applets are stored.
  2. If you already had a clock before adding this one, your applet is most likely one of the /apps/panel/applets/applet_* entries. To check which of these entries are what, run:
    $ gconftool-2 -S bonobo_iid | grep /apps/panel/applets/applet_
    A clock applet will have a bonobo_iid of OAFIID:GNOME_MultiLoadApplet.
  3. Clock applets have a GConf subdirectory called "prefs", where the pertinent values are stored.

Editing the settings

In the following instructions, replace $GCONF_PATH with the full path to your applet (for example, /apps/panel/applets/applet_1).

Displaying UTC time

gconftool-2 -s $GCONF_PATH/prefs/gmt_time -t bool true

Displaying Unix time

gconftool-2 -s $GCONF_PATH/prefs/format -t string unix

Displaying Swatch Internet Time

gconftool-2 -s $GCONF_PATH/prefs/format -t string internet