I'm not sure why but it appears with the ungoogled chromium version I get logged out of my google account very often after I close the browser. Anyone knows why that happens? In theory the cookies should still be in my profile folder and I shouldn't have to re-login all the time.
ungoogled chromium by default clears all cookies after you close the browser.
oh that makes sense, is there a way to change the settings to keep them programmatically? (Preferably without having to build from source myself)
Change that option in the settings

Change that option in the settings
thanks but I'm actually trying to do it programmatically. I'm looking into changing the master preference files at the moment but I'm not sure what the setting is called or which preference file is the correct one https://www.forensicswiki.org/wiki/Google_Chrome
I think the setting might this one https://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/pref_names.cc?view=markup#l1033 profile.clear_site_data_on_exit. Still not sure where to put the master pref file. Which one does ungoogled chromium use?
I think I was able to do it via policies https://www.chromium.org/administrators/linux-quick-start
{
"DefaultCookiesSetting": 1,
"BlockThirdPartyCookies": false
}
@dave-dm It's probably stored in the Preferences file, which is just a serialized JSON text file. You could try pretty-formatting the JSON before and after changing the setting, and doing a text diff to see what JSON key(s) changed.
yes I did try Preferences and it was indeed working but in the end policies ended up a better option for me but if someone else needs to try the settings to add were:
{"profile":{"block_third_party_cookies":false,"default_content_setting_values":{"cookies":1}}}
Closing because issue is solved.
What does this have to do with "ungoogling" Chromium? Can you please explain the logic behind this stupid setting?
Most helpful comment
yes I did try
Preferencesand it was indeed working but in the end policies ended up a better option for me but if someone else needs to try the settings to add were: