![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
Open links in private window
I am running Firefox on my Arch Linux.
Is there a way to modify the default behavior so that links open automatically in a private window instead of a regular one?
被采纳的解决方案
I couldn't quite figure that out so instead I used a slightly different method.
To ~/.local/bin I added firefox_open_private.sh
In the file, I added ```#!/bin/bash firefox --private-window "$1"```
I then ran chmod +x ~/.local/bin/firefox_open_private.sh
I set firefox_open_private.sh as my default web browser and now all links open in private tabs.
定位到答案原位置 👍 0所有回复 (2)
Edit the .desktop file for the default browser and add the --private-window argument.
xdg-settings get default-web-browser
选择的解决方案
I couldn't quite figure that out so instead I used a slightly different method.
To ~/.local/bin I added firefox_open_private.sh
In the file, I added ```#!/bin/bash firefox --private-window "$1"```
I then ran chmod +x ~/.local/bin/firefox_open_private.sh
I set firefox_open_private.sh as my default web browser and now all links open in private tabs.