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

    BleachBit
    Copyright (C) 2008-2025 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/>.

Note:
Deleting $XDG_CONFIG_HOME/libreoffice/4/user/uno_packages (or equivalent)
will uninstall all extensions.

-->
<cleaner id="libreoffice">
  <label>LibreOffice</label>
  <description>Office suite</description>
  <running type="exe" os="unix" same_user="true">soffice.bin</running>
  <running type="exe" os="windows" same_user="true">soffice.exe</running>
  <option id="history">
    <label>History</label>
    <description>Delete the usage history</description>
    <!-- LibreOffice 3 on OpenSUSE from OpenSUSE repo uses ~/.libreoffice/3-suse/user// -->
    <!-- LibreOffice 3.4.5 on Fedora 16 uses ~/.libreoffice/3/user -->
    <!-- LibreOffice 3.5 on Mint 9 (Ubuntu 10.04) uses ~/.config/libreoffice/3/user/ -->
    <!-- LibreOffice 4 on Ubuntu 13.04 uses ~/.config/libreoffice/4/user -->
    <action command="office_registrymodifications" search="file" path="$APPDATA\LibreOffice\3\user\registrymodifications.xcu"/>
    <action command="office_registrymodifications" search="file" path="$XDG_CONFIG_HOME/libreoffice/3/user/registrymodifications.xcu"/>
    <action command="office_registrymodifications" search="file" path="$XDG_CONFIG_HOME/libreoffice/4/user/registrymodifications.xcu"/>
    <action command="office_registrymodifications" search="file" path="~/.libreoffice/3-suse/user/registrymodifications.xcu"/>
    <action command="office_registrymodifications" search="file" path="~/.libreoffice/3/user/registrymodifications.xcu"/>
  </option>
</cleaner>
