Page 1 of 1
firefox private mode DisablePrivateBrowsing
Posted: Tue Sep 03, 2024 5:19 pm
by Sigi
Addendum / Solution:
Use this policy file: /etc/firefox/policies/policies.json (FF update keeps settings)
Use this for current installation: /opt/firefox/distribution/policies.json (update overrides)
- - -
Hi everyone
On a MX desktop I need to disable "private browsing" in firefox.
I found some stuff like win registry "DisablePrivateBrowsing" and for Debian it should be in "/usr/lib/firefox/distribution" the policies.json like this:
Code: Select all
{
"policies": {
"DisablePrivateBrowsing": true
}
}
But nether does this path exist on my MX-23.3, nor found this file on my file system.
Sources:
https://stackoverflow.com/questions/687 ... in-firefox
https://admx.help/?Category=Firefox&Pol ... teBrowsing
How knows the solution, how to do this in MX? Thx!
Re: firefox disable private browsing
Posted: Tue Sep 03, 2024 5:32 pm
by Jerry3904
Did you try a web search on "Linux Firefox no private browsing " or something line that?
Re: firefox disable private browsing [Solved]
Posted: Tue Sep 03, 2024 7:36 pm
by CharlesV
You actually need to create that policies file in a completely different location than anything I have ever seen on the internet.
If you have an MX installed version of firefox, then the correct location where firefox is installed is:
/opt/firefox/distribution
And the policies file for what you want should look like this!
Code: Select all
{
"policies": {
"DisableAppUpdate": true,
"DisablePrivateBrowsing": true
}
}
( DisableAppUpdate is default for the distro )
Re: firefox disable private browsing
Posted: Thu Sep 05, 2024 5:40 pm
by Sigi
Jerry3904 wrote: ↑Tue Sep 03, 2024 5:32 pm
Did you try a web search on "Linux Firefox no private browsing " or something line that?
Of course I did a search, I briefly described the results above, but for MX Linux I didn't find the path, well, here it is: /opt/firefox/distribution
Re: firefox disable private browsing
Posted: Thu Sep 05, 2024 5:43 pm
by Sigi
CharlesV wrote: ↑Tue Sep 03, 2024 7:36 pm
If you have an MX installed version of firefox, then the correct location where firefox is installed is:
/opt/firefox/distribution
And the policies file for what you want should look like this!
Code: Select all
{
"policies": {
"DisableAppUpdate": true,
"DisablePrivateBrowsing": true
}
}
Thank you, perfect solution!
Re: firefox disable private browsing
Posted: Thu Sep 05, 2024 6:52 pm
by fehlix
Sigi wrote: ↑Thu Sep 05, 2024 5:43 pm
CharlesV wrote: ↑Tue Sep 03, 2024 7:36 pm
If you have an MX installed version of firefox, then the correct location where firefox is installed is:
/opt/firefox/distribution
And the policies file for what you want should look like this!
Code: Select all
{
"policies": {
"DisableAppUpdate": true,
"DisablePrivateBrowsing": true
}
}
Thank you, perfect solution!
Note: This policy file is provided with the package, so you'r adjustments would be overwritten
with next package upgrade.
Re: firefox disable private browsing
Posted: Thu Sep 05, 2024 7:25 pm
by CharlesV
+1 fehlix !
Re: firefox disable private browsing
Posted: Thu Sep 05, 2024 7:25 pm
by CharlesV
Sigi wrote: ↑Thu Sep 05, 2024 5:43 pm
CharlesV wrote: ↑Tue Sep 03, 2024 7:36 pm
If you have an MX installed version of firefox, then the correct location where firefox is installed is:
/opt/firefox/distribution
And the policies file for what you want should look like this!
Code: Select all
{
"policies": {
"DisableAppUpdate": true,
"DisablePrivateBrowsing": true
}
}
Thank you, perfect solution!
Excellent! Glad that resolved it.
Re: firefox disable private browsing
Posted: Fri Sep 06, 2024 3:05 pm
by Sigi
fehlix wrote: ↑Thu Sep 05, 2024 6:52 pm
..
Note: This policy file is provided with the package, so you'r adjustments would be overwritten
with next package upgrade.
Thank you for this important hint!
Re: firefox disable private browsing
Posted: Fri Sep 06, 2024 6:39 pm
by fehlix
Sigi wrote: ↑Fri Sep 06, 2024 3:05 pm
fehlix wrote: ↑Thu Sep 05, 2024 6:52 pm
..
Note: This policy file is provided with the package, so you'r adjustments would be overwritten
with next package upgrade.
Thank you for this important hint!
Use this policy file: /etc/firefox/policies/policies.json
Create a new file with content:
Code: Select all
{
"policies": {
"DisableAppUpdate": true,
"DisablePrivateBrowsing": true
}
}
which won't be replaced during package upgrade,
so that your settings are retained and can only be changed with root privileges.
Re: firefox disable private browsing
Posted: Fri Sep 06, 2024 7:07 pm
by CharlesV
Perfect fehlix ! Thank you for that!
Re: firefox disable private browsing
Posted: Sat Sep 07, 2024 1:47 pm
by Sigi
fehlix wrote: ↑Fri Sep 06, 2024 6:39 pm
...
Use this policy file: /etc/firefox/policies/policies.json
Create a new file with content:
Code: Select all
{
"policies": {
"DisableAppUpdate": true,
"DisablePrivateBrowsing": true
}
}
which won't be replaced during package upgrade,
so that your settings are retained and can only be changed with root privileges.
Wow, thank you very much! Perfect!