<def-group>
  <definition class="compliance" id="gconf_gnome_disable_thumbnailers" version="1">
    <metadata>
      <title>Disable All GNOME Thumbnailers</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>The system's default desktop environment, GNOME, uses a
      number of different thumbnailer programs to generate thumbnails for any
      new or modified content in an opened folder. Disable the execution of
      these thumbnail applications within GNOME.</description>
      <reference source="MED" ref_id="20131125" ref_url="test_attestation" />
    </metadata>
    <criteria operator="OR">
      <extend_definition comment="GConf2 installed" definition_ref="package_GConf2_installed" negate="true" />
      <criterion comment="Disable thumbnailers in GNOME" test_ref="test_gconf_gnome_disable_thumbnailers" />
      <criterion comment="Disable thumbnailers in GNOME" test_ref="test_gconf_tree_gnome_disable_thumbnailers" />
    </criteria>
  </definition>
  <ind:xmlfilecontent_test check="all" check_existence="all_exist"
  comment="Disable thumbnailers in GNOME"
  id="test_gconf_gnome_disable_thumbnailers" version="1">
    <ind:object object_ref="obj_gconf_gnome_disable_thumbnailers" />
    <ind:state state_ref="state_gconf_gnome_disable_thumbnailers" />
  </ind:xmlfilecontent_test>
  <ind:xmlfilecontent_object id="obj_gconf_gnome_disable_thumbnailers" version="1">
    <ind:filepath>/etc/gconf/gconf.xml.mandatory/desktop/gnome/thumbnailers/%gconf.xml</ind:filepath>
    <ind:xpath>/gconf/entry[@name='disable_all']/@value</ind:xpath>
  </ind:xmlfilecontent_object>

  <ind:xmlfilecontent_test check="all" check_existence="all_exist"
  comment="Disable thumbnailers in GNOME"
  id="test_gconf_tree_gnome_disable_thumbnailers" version="1">
    <ind:object object_ref="obj_gconf_tree_gnome_disable_thumbnailers" />
    <ind:state state_ref="state_gconf_gnome_disable_thumbnailers" />
  </ind:xmlfilecontent_test>
  <ind:xmlfilecontent_object id="obj_gconf_tree_gnome_disable_thumbnailers" version="1">
    <ind:filepath>/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml</ind:filepath>
    <ind:xpath>/gconf/dir/dir/dir/entry[@name='disable_all']/@value</ind:xpath>
  </ind:xmlfilecontent_object>

  <ind:xmlfilecontent_state id="state_gconf_gnome_disable_thumbnailers" version="1">
    <ind:value_of datatype="string">true</ind:value_of>
  </ind:xmlfilecontent_state>
</def-group>
