Projet

Général

Profil

Gconf

Panel du haut

Le panel du haut se configure dans ~.gconf/apps/panel/toplevels/top_panel_screen0/%gconf.xml

        <entry name="size" mtime="1187689878" schema="/schemas/apps/panel/toplevels/size" type="int" value="24">
        </entry>

Applications

Les applications contenues dans le panel sont définies à deux endroits complémentaires:

  • ~/.gconf/apps/panel/general/%gconf.xml
        <li type="string">
            <stringvalue>object_15</stringvalue>
        </li>
  • .gconf/apps/panel/objects/object_15/%gconf.xml (cf object_15 du fichier précédent) qui a son tour fait référence à un fichier .desktop en guise de lanceur
<?xml version="1.0"?>
<gconf>
    <entry name="attached_toplevel_id" mtime="1270979415" schema="/schemas/apps/panel/objects/attached_toplevel_id"/>
    <entry name="position" mtime="1270979415" schema="/schemas/apps/panel/objects/position" type="int" value="283"/>
    <entry name="use_menu_path" mtime="1270979415" schema="/schemas/apps/panel/objects/use_menu_path"/>
    <entry name="action_type" mtime="1270979415" schema="/schemas/apps/panel/objects/action_type"/>
    <entry name="toplevel_id" mtime="1270979415" schema="/schemas/apps/panel/objects/toplevel_id" type="string">
        <stringvalue>top_panel_screen0</stringvalue>
    </entry>
    <entry name="tooltip" mtime="1270979415" schema="/schemas/apps/panel/objects/tooltip"/>
    <entry name="use_custom_icon" mtime="1270979415" schema="/schemas/apps/panel/objects/use_custom_icon"/>
    <entry name="object_type" mtime="1270979415" schema="/schemas/apps/panel/objects/object_type" type="string">
        <stringvalue>launcher-object</stringvalue>
    </entry>
    <entry name="panel_right_stick" mtime="1270979415" schema="/schemas/apps/panel/objects/panel_right_stick" type="bool" value="false"/>
    <entry name="locked" mtime="1270979415" schema="/schemas/apps/panel/objects/locked"/>
    <entry name="custom_icon" mtime="1270979415" schema="/schemas/apps/panel/objects/custom_icon"/>
    <entry name="bonobo_iid" mtime="1270979415" schema="/schemas/apps/panel/objects/bonobo_iid"/>
    <entry name="launcher_location" mtime="1270979415" schema="/schemas/apps/panel/objects/launcher_location" type="string">
        <stringvalue>/usr/share/applications/firefox.desktop</stringvalue>
    </entry>
    <entry name="menu_path" mtime="1270979415" schema="/schemas/apps/panel/objects/menu_path"/>
</gconf>

  • fichier .desktop qui se trouve dans .gnome2/panelX.d/default/launchers s'il n'est pas fournis par le système !

screensaver

exemple d'utilisation pour l'économiseur d'écran:

gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /apps/gnome-screensaver/idle_activation_enabled true
gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /apps/gnome-screensaver/lock_enabled true
gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type string \
  --set /apps/gnome-screensaver/mode blank-only
gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type int \
  --set /apps/gnome-screensaver/idle_delay 10
Redmine Appliance - Powered by TurnKey Linux