firefox private mode DisablePrivateBrowsing  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Sigi
Posts: 132
Joined: Thu Mar 12, 2020 9:46 am

firefox private mode DisablePrivateBrowsing

#1 Post 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!
Last edited by Sigi on Sun Oct 27, 2024 12:55 pm, edited 3 times in total.

User avatar
Jerry3904
Administrator
Posts: 23044
Joined: Wed Jul 19, 2006 6:13 am

Re: firefox disable private browsing

#2 Post by Jerry3904 »

Did you try a web search on "Linux Firefox no private browsing " or something line that?
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
CharlesV
Global Moderator
Posts: 7059
Joined: Sun Jul 07, 2019 5:11 pm

Re: firefox disable private browsing  [Solved]

#3 Post 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 )
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Sigi
Posts: 132
Joined: Thu Mar 12, 2020 9:46 am

Re: firefox disable private browsing

#4 Post 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

User avatar
Sigi
Posts: 132
Joined: Thu Mar 12, 2020 9:46 am

Re: firefox disable private browsing

#5 Post 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!

User avatar
fehlix
Developer
Posts: 12589
Joined: Wed Apr 11, 2018 5:09 pm

Re: firefox disable private browsing

#6 Post 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.

User avatar
CharlesV
Global Moderator
Posts: 7059
Joined: Sun Jul 07, 2019 5:11 pm

Re: firefox disable private browsing

#7 Post by CharlesV »

+1 fehlix !
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7059
Joined: Sun Jul 07, 2019 5:11 pm

Re: firefox disable private browsing

#8 Post 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.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Sigi
Posts: 132
Joined: Thu Mar 12, 2020 9:46 am

Re: firefox disable private browsing

#9 Post 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!

User avatar
fehlix
Developer
Posts: 12589
Joined: Wed Apr 11, 2018 5:09 pm

Re: firefox disable private browsing

#10 Post 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.

Post Reply

Return to “MX Help”