Debian Codegraph @

cleaners/openoffice.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 SPDX-License-Identifier: GPL-3.0-or-later
5 Copyright (c) 2008-2026 Andrew Ziem.
6
7 This work is licensed under the terms of the GNU GPL, version 3 or
8 later. See the COPYING file in the top-level directory.
9
10 This cleaner covers OpenOffice.org and Apache OpenOffice.org, but
11 LibreOffice is in `libreoffice.xml`.
12
13 Notes
14
15 - Deleting the cache directory will also remove cached registry data.
16 - When converting from Python code to CleanerML, we dropped support
17 for cleaning MRU in `Common.xcu`, which was obsolete by OpenOffice 3.4.
18
19 Apache OpenOffice 4.1.16 on Ubuntu
20
21 - starts with `/usr/bin/openoffice4`, but has process names `soffice` and `soffice.bin`.
22 - deleting `$$base$$/user/uno_packages/cache` still uninstalls extensions
23 - `registrymodifications.xcu` MRU cleaner worked
24
25 Apache OpenOffice 4.1.6 on Windows 10
26
27 - has running processes `soffice.exe` and `soffice.bin`
28
29 -->
30 <cleaner id="openoffice">
31 <label>Apache OpenOffice</label>
32 <description>Office suite</description>
33 <running type="exe" os="linux" same_user="true">soffice</running>
34 <running type="exe" os="windows" same_user="true">soffice.exe</running>
35 <running type="exe" same_user="true">soffice.bin</running>
36 <var name="base">
37 <!-- OpenOffice.org 2.x -->
38 <value os="linux">~/.ooo-2.0</value>
39 <value os="linux">~/.openoffice.org2</value>
40 <value os="linux">~/.openoffice.org2.0</value>
41 <!-- OpenOffice.org 3.x -->
42 <value os="linux">~/.openoffice.org/3</value>
43 <value os="linux">~/.ooo-dev3</value>
44 <value os="windows">$APPDATA\OpenOffice.org\3</value>
45 <value os="windows">$APPDATA\OpenOffice.org2</value>
46 <!-- Apache OpenOffice 4.x -->
47 <value os="linux">~/.openoffice/4</value>
48 <value os="windows">$APPDATA\OpenOffice.org\4</value>
49 </var>
50 <option id="cache">
51 <label>Cache</label>
52 <description>Delete the cache</description>
53 <action command="delete" search="walk.files" path="$$base$$/user/registry/cache"/>
54 </option>
55 <option id="recent_documents">
56 <label>Most recently used</label>
57 <description>Delete the list of recently used documents</description>
58 <action command="delete" search="file" path="$$base$$/user/registry/data/org/openoffice/Office/Histories.xcu"/>
59 <action command="delete" search="file" path="$$base$$/user/registry/cache/org.openoffice.Office.Histories.dat"/>
60 <action command="delete" search="file" path="$$base$$/user/registry/cache/org.openoffice.Office.Common.dat"/>
61 <action command="office_registrymodifications" search="file" path="$$base$$/user/registrymodifications.xcu"/>
62 </option>
63 </cleaner>