Debian Codegraph @

cleaners/chromium.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 -->
11 <cleaner id="chromium">
12 <label>Chromium</label>
13 <description>Web browser</description>
14 <running type="exe" os="windows" same_user="true">chrome.exe</running>
15 <running type="exe" os="linux" same_user="true">chromium-browser</running>
16 <!-- OpenBSD and NetBSD use "chrome" for Chromium, while on Linux it means
17 Google Chrome. In other words, on Linux this could give a false positive
18 for Chromium when Google Chrome is running. -->
19 <running type="exe" os="bsd">chrome</running>
20 <var name="base">
21 <value os="windows">%LocalAppData%\Chromium\User Data</value>
22 <value os="linux">$XDG_CONFIG_HOME/chromium</value>
23 <value os="linux">~/snap/chromium/common/chromium</value>
24 <value os="linux">~/.var/app/org.chromium.Chromium/config/chromium</value>
25 <value os="linux">~/.var/app/io.github.ungoogled_software.ungoogled_chromium/config/chromium</value>
26 <value os="freebsd">$XDG_CONFIG_HOME/chromium</value>
27 <value os="openbsd">$XDG_CONFIG_HOME/chromium</value>
28 </var>
29 <var name="profile">
30 <value os="windows">%LocalAppData%\Chromium\User Data\Default</value>
31 <value os="linux">$XDG_CONFIG_HOME/chromium/Default</value>
32 <value os="linux">~/snap/chromium/common/chromium/Default</value>
33 <value os="linux">~/.var/app/org.chromium.Chromium/config/chromium/Default</value>
34 <value os="linux">~/.var/app/io.github.ungoogled_software.ungoogled_chromium/config/chromium/Default</value>
35 <value os="freebsd">$XDG_CONFIG_HOME/chromium/Default</value>
36 <value os="openbsd">$XDG_CONFIG_HOME/chromium/Default</value>
37 </var>
38 <option id="cache">
39 <label>Cache</label>
40 <description>Delete the web cache, which reduces time to display revisited pages</description>
41 <action command="delete" search="file" path="$$base$$/Safe Browsing Channel IDs-journal"/>
42 <action command="delete" search="walk.all" path="$$base$$/component_crx_cache"/>
43 <action command="delete" search="walk.all" path="$$base$$/extensions_crx_cache"/>
44 <action command="delete" search="walk.all" path="$$base$$/GraphiteDawnCache"/>
45 <action command="delete" search="walk.all" path="$$base$$/GrShaderCache"/>
46 <action command="delete" search="walk.all" path="$$base$$/ShaderCache"/>
47 <action command="delete" search="file" path="$$profile$$/Network Persistent State"/>
48 <action command="delete" search="file" path="$$profile$$/Network/Network Persistent State"/>
49 <action command="delete" search="walk.all" path="$$profile$$/Code Cache"/>
50 <action command="delete" search="walk.all" path="$$profile$$/DawnCache/"/>
51 <action command="delete" search="walk.all" path="$$profile$$/GPUCache/"/>
52 <action command="delete" search="walk.all" path="$$profile$$/Storage/ext/*/*def/GPUCache"/>
53 <action command="json" search="file" path="$$profile$$/Preferences" address="dns_prefetching/host_referral_list"/>
54 <action command="json" search="file" path="$$profile$$/Preferences" address="dns_prefetching/startup_list"/>
55 <action command="json" search="file" path="$$profile$$/Preferences" address="net/http_server_properties/servers"/>
56 <action command="json" search="file" path="$$base$$/Local State" address="HostReferralList"/>
57 <action command="json" search="file" path="$$base$$/Local State" address="StartupDNSPrefetchList"/>
58 <!-- Linux-specific -->
59 <action command="delete" search="walk.all" path="$XDG_CACHE_HOME/chromium/"/>
60 <action command="delete" search="walk.all" path="$$profile$$/Cache"/>
61 <action command="delete" search="walk.all" path="~/.var/app/org.chromium.Chromium/cache/"/>
62 <action command="delete" search="walk.all" path="~/.var/app/io.github.ungoogled_software.ungoogled_chromium/cache/"/>
63 <action command="delete" search="walk.all" path="~/snap/chromium/common/.cache/mesa_shader_cache_db"/>
64 <action command="delete" search="walk.all" path="~/snap/chromium/common/.cache/mesa_shader_cache"/>
65 <action command="delete" search="walk.all" path="~/snap/chromium/common/.cache/chromium"/>
66 <!-- Windows-specific -->
67 <action command="delete" search="glob" path="$$base$$\B*.tmp"/>
68 <action command="delete" search="walk.all" path="$$profile$$\Default\Application Cache\"/>
69 <action command="delete" search="walk.all" path="$$profile$$\Cache\"/>
70 <action command="delete" search="walk.all" path="$$profile$$\Media Cache\"/>
71 </option>
72 <option id="cookies">
73 <label>Cookies</label>
74 <description>Delete cookies, which store login information, website preferences, and tracking identifiers</description>
75 <action command="cookie" search="file" path="$$profile$$/Cookies"/>
76 <action command="delete" search="file" path="$$profile$$/Cookies-journal"/>
77 <action command="cookie" search="file" path="$$profile$$/Network/Cookies"/>
78 <action command="delete" search="file" path="$$profile$$/Network/Cookies-journal"/>
79 <action command="cookie" search="file" path="$$profile$$/Extension Cookies"/>
80 <action command="delete" search="file" path="$$profile$$/Extension Cookies-journal"/>
81 <action command="delete" search="file" path="$$profile$$/TransportSecurity"/>
82 </option>
83 <option id="crash_reports">
84 <label>Crash reports</label>
85 <description>Delete the files</description>
86 <action command="delete" search="walk.all" path="$$base$$/Crash Reports/"/>
87 </option>
88 <option id="form_history">
89 <label>Form history</label>
90 <description>A history of forms entered in websites</description>
91 <action command="chrome.autofill" search="file" path="$$profile$$/Web Data"/>
92 <action command="delete" search="file" path="$$profile$$/Web Data-journal"/>
93 </option>
94 <option id="history">
95 <label>History</label>
96 <description>Delete the history which includes visited sites, downloads, and thumbnails</description>
97 <!-- keep /History before /Favicons -->
98 <action command="chrome.history" search="file" path="$$profile$$/History"/>
99 <action command="chrome.favicons" search="file" path="$$profile$$/Favicons"/>
100 <action command="delete" search="file" path="$$base$$/chrome_shutdown_ms.txt"/>
101 <action command="delete" search="file" path="$$base$$/Safe Browsing Cookies-journal"/>
102 <action command="delete" search="file" path="$$profile$$/Archived History-journal"/>
103 <action command="delete" search="file" path="$$profile$$/Archived History"/>
104 <action command="delete" search="file" path="$$profile$$/DownloadMetadata"/>
105 <action command="delete" search="file" path="$$profile$$/DIPS"/>
106 <action command="delete" search="file" path="$$profile$$/History Provider Cache"/>
107 <action command="delete" search="file" path="$$profile$$/History-journal"/>
108 <action command="delete" search="file" path="$$profile$$/MediaDeviceSalts-journal"/>
109 <action command="delete" search="file" path="$$profile$$/MediaDeviceSalts"/>
110 <action command="delete" search="file" path="$$profile$$/Network Action Predictor-journal"/>
111 <action command="delete" search="file" path="$$profile$$/Network Action Predictor"/>
112 <action command="delete" search="file" path="$$profile$$/Origin Bound Certs-journal"/>
113 <action command="delete" search="file" path="$$profile$$/Reporting and NEL-journal"/>
114 <action command="delete" search="file" path="$$profile$$/Reporting and NEL"/>
115 <action command="delete" search="file" path="$$profile$$/Shortcuts-journal"/>
116 <action command="delete" search="file" path="$$profile$$/Shortcuts"/>
117 <action command="delete" search="glob" path="$$profile$$/History Index ????-??-journal"/>
118 <action command="delete" search="glob" path="$$profile$$/History Index ????-??"/>
119 <!-- Before about January 2016 Thumbnails was an SQLite file, by Google Chrome 48 it is a folder -->
120 <action command="delete" search="file" path="$$profile$$/Thumbnails"/>
121 <action command="delete" search="walk.files" path="$$profile$$/Thumbnails"/>
122 <action command="delete" search="file" path="$$profile$$/Thumbnails-journal"/>
123 <action command="delete" search="file" path="$$profile$$/Top Sites-journal"/>
124 <action command="delete" search="file" path="$$profile$$/Top Sites"/>
125 <action command="delete" search="file" path="$$profile$$/Visited Links"/>
126 <action command="delete" search="file" path="$$profile$$/WebStorage/QuotaManager"/>
127 <action command="delete" search="file" path="$$profile$$/WebStorage/QuotaManager-journal"/>
128 <action command="json" search="file" path="$$profile$$/Preferences" address="zerosuggest/cachedresults"/>
129 <action command="json" search="file" path="$$profile$$/Preferences" address="zerosuggest/cachedresults_with_url"/>
130 <!-- Windows-specific -->
131 <action command="delete" search="walk.files" path="$$profile$$\JumpListIconsMostVisited\"/>
132 <action command="delete" search="walk.files" path="$$profile$$\JumpListIconsOld\"/>
133 <action command="delete" search="walk.files" path="$$profile$$\JumpListIconsRecentClosed\"/>
134 <action command="delete" search="walk.files" path="$$profile$$\JumpListIcons\"/>
135 </option>
136 <option id="search_engines">
137 <label>Search engines</label>
138 <description translators="'Factory' means a search engine that is installed by default 'from the factory,' but this is different than a 'default search engine' https://lists.launchpad.net/launchpad-translators/msg00283.html">Reset the search engine usage history and delete non-factory search engines, some of which are added automatically</description>
139 <action command="chrome.keywords" search="file" path="$$profile$$/Web Data"/>
140 </option>
141 <option id="session">
142 <label>Session</label>
143 <description>Previously open tabs and windows</description>
144 <action command="delete" search="file" path="$$profile$$/Current Session"/>
145 <action command="delete" search="file" path="$$profile$$/Current Tabs"/>
146 <action command="delete" search="file" path="$$profile$$/Last Session"/>
147 <action command="delete" search="file" path="$$profile$$/Last Tabs"/>
148 <action command="delete" search="walk.all" path="$$profile$$/Sessions"/>
149 </option>
150 <option id="site_data">
151 <label>Site data</label>
152 <description>Delete LocalStorage, IndexedDB, and other data stored by websites</description>
153 <!-- do not delete extension preferences ~/.config/chromium/Default/database/chrome-extension* (Fedora 14, Chromium 12) -->
154 <action command="chrome.databases_db" search="file" path="$$profile$$/databases/Databases.db"/>
155 <action command="delete" search="walk.all" path="$$profile$$/databases/http*/"/>
156 <action command="delete" search="walk.all" path="$$profile$$/File System"/>
157 <action command="delete" search="walk.all" path="$$profile$$/IndexedDB"/>
158 <action command="delete" search="walk.all" path="$$profile$$/Local Storage"/>
159 <action command="delete" search="walk.all" path="$$profile$$/Service Worker"/>
160 <action command="delete" search="walk.all" path="$$profile$$/WebStorage"/>
161 <action command="delete" search="file" path="$$profile$$/QuotaManager"/>
162 <action command="delete" search="file" path="$$profile$$/QuotaManager-journal"/>
163 <action command="delete" search="walk.all" path="$$profile$$/Extension State"/>
164 <action command="delete" search="walk.files" path="$$profile$$/Session Storage/"/>
165 </option>
166 <option id="sync">
167 <label>Sync</label>
168 <description>Delete the sync data (including web apps) and sign out of the browser</description>
169 <action command="delete" search="walk.files" path="$$profile$$/Sync Data/"/>
170 <!-- Sync Data Backup not seen in Chromium 65 -->
171 <action command="json" search="file" path="$$base$$/Local State" address="profile"/>
172 <action command="json" search="file" path="$$profile$$/Preferences" address="account_info"/>
173 <action command="json" search="file" path="$$profile$$/Preferences" address="google_services"/>
174 <action command="json" search="file" path="$$profile$$/Preferences" address="sync"/>
175 </option>
176 <option id="passwords">
177 <label>Passwords</label>
178 <description>A database of usernames and passwords as well as a list of sites that should not store passwords</description>
179 <warning>This option will delete your saved passwords.</warning>
180 <action command="delete" search="file" path="$$profile$$/Login Data"/>
181 <action command="delete" search="file" path="$$profile$$/Login Data-journal"/>
182 <action command="delete" search="file" path="$$profile$$/Login Data For Account"/>
183 <action command="delete" search="file" path="$$profile$$/Login Data For Account-journal"/>
184 </option>
185 <option id="vacuum">
186 <label>Vacuum</label>
187 <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
188 <action command="sqlite.vacuum" search="file" path="$$profile$$/Cookies"/>
189 <action command="sqlite.vacuum" search="file" path="$$profile$$/Network/Cookies"/>
190 <action command="sqlite.vacuum" search="file" path="$$profile$$/Extension Cookies"/>
191 <action command="sqlite.vacuum" search="file" path="$$profile$$/History"/>
192 <action command="sqlite.vacuum" search="glob" path="$$profile$$/History Index ????-??"/>
193 <action command="sqlite.vacuum" search="file" path="$$profile$$/Login Data"/>
194 <action command="sqlite.vacuum" search="file" path="$$profile$$/Login Data For Account"/>
195 <action command="sqlite.vacuum" search="file" path="$$profile$$/Origin Bound Certs"/>
196 <action command="sqlite.vacuum" search="file" path="$$profile$$/Network Action Predictor"/>
197 <action command="sqlite.vacuum" search="file" path="$$profile$$/Reporting and NEL"/>
198 <action command="sqlite.vacuum" search="file" path="$$profile$$/MediaDeviceSalts"/>
199 <action command="sqlite.vacuum" search="file" path="$$profile$$/previews_opt_out.db"/>
200 <action command="sqlite.vacuum" search="file" path="$$profile$$/QuotaManager"/>
201 <action command="sqlite.vacuum" search="file" path="$$profile$$/WebStorage/QuotaManager"/>
202 <action command="sqlite.vacuum" search="file" path="$$profile$$/Shortcuts"/>
203 <!-- Before about January 2016 Thumbnails was an SQLite file, by Google Chrome 48 it is a folder -->
204 <action command="sqlite.vacuum" search="file" path="$$profile$$/Thumbnails" type="f"/>
205 <action command="sqlite.vacuum" search="file" path="$$profile$$/Top Sites"/>
206 <action command="sqlite.vacuum" search="file" path="$$profile$$/Web Data"/>
207 <action command="sqlite.vacuum" search="file" path="$$profile$$/databases/Databases.db"/>
208 <action command="sqlite.vacuum" search="glob" path="$$profile$$/databases/http*/?"/>
209 <action command="sqlite.vacuum" search="glob" path="$$profile$$/databases/http*/??"/>
210 <action command="sqlite.vacuum" search="file" path="$$profile$$/Sync Data/SyncData.sqlite3"/>
211 </option>
212 <option id="site_preferences">
213 <label>Site preferences</label>
214 <description>Settings for individual sites</description>
215 <action command="json" search="file" path="$$profile$$/Preferences" address="profile/content_settings/exceptions"/>
216 </option>
217 </cleaner>