<def-group>
  <definition class="compliance" id="dconf_gnome_disable_thumbnailers" version="1">
    {{{ oval_metadata("The system's default desktop environment, GNOME3, 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 GNOME3.") }}}
    <criteria operator="OR">
      <extend_definition comment="dconf installed" definition_ref="package_dconf_installed" negate="true" />
      <criteria comment="Disable Gnome3 Thumbnailers and prevent user from enabling" operator="AND">
        <extend_definition comment="dconf user profile exists" definition_ref="enable_dconf_user_profile" />
        <criterion comment="Disable thumbnailers in GNOME3" test_ref="test_gnome_disable_thumbnailers" />
        <criterion comment="prevent user from changing idle delay" test_ref="test_prevent_user_change_gnome_thumbnailers" />
      </criteria>
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Disable thumbnailers in GNOME3"
  id="test_gnome_disable_thumbnailers" version="1">
    <ind:object object_ref="obj_gnome_disable_thumbnailers" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_gnome_disable_thumbnailers"
  version="1">
    <ind:path>/etc/dconf/db/local.d/</ind:path>
    <ind:filename operation="pattern match">^.*$</ind:filename>
    <ind:pattern operation="pattern match">^\[org/gnome/desktop/thumbnailers\]([^\n]*\n+)+?disable-all=true$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="user cannot enable thumbnailers "
  id="test_prevent_user_change_gnome_thumbnailers" version="1">
    <ind:object object_ref="obj_prevent_user_change_gnome_thumbnailers" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_prevent_user_change_gnome_thumbnailers"
  version="1">
    <ind:path>/etc/dconf/db/local.d/locks/</ind:path>
    <ind:filename operation="pattern match">^.*$</ind:filename>
    <ind:pattern operation="pattern match">^/org/gnome/desktop/thumbnailers/disable-all$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
