<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2008-2023 Andrew Ziem
    https://www.bleachbit.org

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-->
<cleaner id="epiphany" os="linux">
  <label>Epiphany</label>
  <description>Web browser</description>
  <running type="exe">epiphany</running>
  <running type="pathname">~/.gnome2/epiphany/mozilla/epiphany/lock</running>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the web cache, which reduces time to display revisited pages</description>
    <action command="delete" search="file" path="~/.gnome2/epiphany/ephy-favicon-cache.xml"/>
    <action command="delete" search="walk.files" path="~/.gnome2/epiphany/favicon_cache/"/>
    <action command="delete" search="walk.files" path="~/.gnome2/epiphany/mozilla/epiphany/Cache/"/>
    <action command="delete" search="walk.files" path="$XDG_CACHE_HOME/epiphany-browser/"/>
  </option>
  <option id="cookies">
    <label>Cookies</label>
    <description>Delete cookies, which contain information such as web site preferences, authentication, and tracking identification</description>
    <action command="delete" search="file" path="~/.gnome2/epiphany/mozilla/epiphany/cookies.txt"/>
    <action command="delete" search="file" path="~/.gnome2/epiphany/mozilla/epiphany/cookies.sqlite"/>
    <action command="delete" search="file" path="~/.gnome2/epiphany/mozilla/epiphany/cookies.sqlite-journal"/>
    <action command="delete" search="file" path="$XDG_CONFIG_HOME/epiphany/cookies.sqlite"/>
  </option>
  <option id="passwords">
    <label>Passwords</label>
    <description>A database of usernames and passwords as well as a list of sites that should not store passwords</description>
    <warning>This option will delete your saved passwords.</warning>
    <action command="delete" search="file" path="~/.gnome2/epiphany/mozilla/epiphany/signons3.txt"/>
  </option>
  <option id="places">
    <label>Places</label>
    <description>A database of URLs including bookmarks, favicons, and a history of visited web sites</description>
    <warning>This option deletes all bookmarks.</warning>
    <action command="delete" search="file" path="~/.gnome2/epiphany/mozilla/epiphany/places.sqlite"/>
    <action command="delete" search="file" path="~/.gnome2/epiphany/mozilla/epiphany/places.sqlite-journal"/>
    <action command="delete" search="file" path="~/.gnome2/epiphany/ephy-history.xml"/>
    <action command="delete" search="file" path="$XDG_CONFIG_HOME/epiphany/bookmarks.rdf"/>
    <action command="delete" search="file" path="$XDG_CONFIG_HOME/epiphany/ephy-bookmarks.xml"/>
    <action command="delete" search="file" path="$XDG_CONFIG_HOME/epiphany/ephy-history.db"/>
    <action command="delete" search="file" path="$XDG_CONFIG_HOME/epiphany/session_state.xml"/>
    <action command="delete" search="file" path="$XDG_CONFIG_HOME/epiphany/session_state.xml~"/>
  </option>
  <option id="dom">
    <label>DOM Storage</label>
    <description>Delete HTML5 cookies</description>
    <action command="delete" search="walk.files" path="$XDG_DATA_HOME/webkitgtk/localstorage/"/>
  </option>
</cleaner>
