Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

Open links in private window

  • 2 réponses
  • 0 a ce problème
  • 1 vue
  • Dernière réponse par user419

more options

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 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?

Solution choisie

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.

Lire cette réponse dans son contexte 👍 0

Toutes les réponses (2)

more options

Edit the .desktop file for the default browser and add the --private-window argument.

xdg-settings get default-web-browser
more options

Solution choisie

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.