Anno domini 2021 Tue, 5 Jan 08:47:00 -0500 Edward scripsit: > On 1/5/21 4:32 AM, Dr. Nikolaus Klepp wrote: > > > >> Follow these steps: > >> > >> https://www.cb-net.co.uk/linux/debian-8-jessie-firefox-locked-preferences/ > >> > >> > >> Nik > >> > > additional note: you can turn on plaintext preferences and add the defaultbrowsercheck to these prefs on login: > > > > about:config --> general.config.obscure_value" = 0 > > > > Then in your .xinitrc or whatever you use to mange autostart on login: > > > > for i in ~/.mozilla/firefox/*/prets.js; do > > echo 'user_pref("browser.shell.checkDefaultBrowser",false);' >> $i > > done > > > > Sidenote: check the modification time of that file to identify if something is mession with your local firefox settings or if it's done on a global base. > > > > nik > > Hi Nik, > > When I turned the system on this morning (without launching Konqueror), > Firefox and Thunderbird were working as expected. But when I checked the > Firefox preferences, it again said it was not the default browser, I > changed it back. > > Something system-wide keeps changing the default browser. > > I don't know what is installed managing autostart. > > I added the above user pref line to a new file 'user.js' in the profile > directory, this is commented as one method to change the preferences > when looking at prefs.js in vim, however when launching Firefox after, > the preferences again indicated it wasn't the default and the same user > pref was true, so the user.js had no effect. Please check if "browser.shell.checkDefaultBrowser" is set somewhere in the defaults. On my system it's set in 2 files. Whichever is read later will win: $ fgrep browser.shell.checkDefaultBrowser /usr/lib/firefox-esr/browser/defaults -R /usr/lib/firefox-esr/browser/defaults/syspref/firefox-esr.js:pref("browser.shell.checkDefaultBrowser", false); /usr/lib/firefox-esr/browser/defaults/preferences/firefox.js:pref("browser.shell.checkDefaultBrowser", true); $ Interestingly it's not set to false in my profile - where I explictly set it to false. But as "false" is the system default, I assume firefox uses some "clever opimisation" when saving preferences: $ fgrep browser.shell.checkDefaultBrowser ~/.mozilla -R $ You can check what your firefox reads with this line - look for the last occurence of what ever prefrences file holds references to "browser.shell.checkDefaultBrowser": $ strace -f $(which firefox) 2>&1|grep '[.]js'|grep "[.]js\""|sed 's#^.*"\(.*\)".*$#\1#'|less Nik > > -- > Linux. A Continual Learning Experience. > ____________________________________________________ > tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx > Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx > -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... ____________________________________________________ tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx