Is your feature request related to a problem? Please describe.
One reason I don't use chromium is because I could never find a clear way to delete everything when I close the browser, like firefox has.
For example, in Firefox, I can go into the Firefox settings -> Privacy & Security -> History -> Check "Clear history when Firefox closes" -> Settings -> choose all of
AFAICT, there is no way to have Chromium delete all of this data (with the exception of cookies) when it closes. The best I've found is some plugin called "Click & Clean", but that requires the user to click -- I want the data to be deleted automatically when the browser is closed.
Describe the solution you'd like
An option should exist (maybe next to the Chromium settings -> Clear browsing data) to clean all data every time Chromium closes.
Describe alternatives you've considered
Using addons.
But I just use firefox 炉(掳_o)/炉
Additional context
Add any other context or screenshots about the feature request here.
Yeah, I've always wanted that functionality as well, a good workaround is to change the permissions of the folder where your history is stored and make it read-only.
PRs welcome, but it might be more complicated to implement than it's worth.
Doesn't Incognito mode already do this?
Just clean everything once and stick to using incognito mode only (run the program with --incognito command line option).
you can't open settings, history or bookmarks in an incognito window
you can't open settings, history or bookmarks in an incognito window
Any site specific settings are not remembered while browsing in incognito. Same applies for history.
Generally the important data needed to restore general and custom settings + profile bookmarks and logins is in:
~/.config/chromium/Default/Preferences
~/.config/chromium/Default/Bookmarks
~/.config/chromium/Default/Favicons
~/.config/chromium/Default/Login Data
~/.config/chromium/Local State
Those are the files I back up.
You can set up a generic empty profile with all your settings - no bookmarks, logins or site specific settings. It will only need
~/.config/chromium/Default/Preferences
~/.config/chromium/Local State
So you can copy those in a separate directory. Then with a simple script you can:
as a workaround, you could use bleachbit to do something like
chromium && bleachbit -c chromium.history chromium.cookies chromium.form_history chromium.session chromium.session chromium.vacuum
chromium will run as normal, once exited, bleachbit will delete whatever you've told it to.
Couldn't this be achieved with an user script?
Edit:
I made this little extension to clean up data on startup. It could also clean on exit, but the methods I used won't work unless _run in background_ setting is enabled (I don't like that).
If anyone knows how to achieve the trigger on browser close event and care to tell me, I would appreciate it.
I think this is a very important feature and its absence keeps many people from using Ungoogled Chromium.
The ability to choose what data to delete upon closing the browser is a standard feature in all mainstream browsers (Google Chrome, Firefox, Edge, Brave, etc.) and for good reason. People want an automated way to stay logged in to the pages they regularly use while also not having the complete browsing history, cache, and whatnot being around somewhere in the background.
There certainly is a demand for this and seeing that it has become a standard feature in modern browsers I wouldn't say that it is not worth the effort.
Is there any progress on this? Right now you can only clean cookies and site data on exit. But History and Cached data and images are still stored. I press Ctrl+Shift+Del from time to time but it's getting annoying. This is an essential feature in major browsers.
Most helpful comment
Is there any progress on this? Right now you can only clean cookies and site data on exit. But History and Cached data and images are still stored. I press Ctrl+Shift+Del from time to time but it's getting annoying. This is an essential feature in major browsers.