[SOLVED] Two firefox appearing one Private one not from link

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] Two firefox appearing one Private one not from link

Postby k829king » 2020-07-27 09:37

If I click on link in an email or open a html file from PCManFM I get two instances of firefox starting one a Private window with no content and one non Private (normal) window with the link content.

I have my /usr/share/applications/firefox-esr.desktop configured with the -private.

If I launch firefox from task bar, menu or command line it starts just the one window as private viewing.

I want all my firefox windows to be private viewing.

if I say open new private window from link web page it opens correctly (for me) one new private window with for the link
Last edited by k829king on 2020-07-28 08:32, edited 1 time in total.
k829king
 
Posts: 68
Joined: 2018-08-26 09:47

Re: Two firefox appearing one Private one not from link

Postby sickpig » 2020-07-27 12:21

./.local/share/applications/firefox-esr.desktop could be getting picked up
in pcmanfm on the html file, right click > open with > custom command line > specify your firefox argument. There is an option to make it as default.
your email client could potentially have similar option
User avatar
sickpig
 
Posts: 473
Joined: 2019-01-23 10:34

Re: Two firefox appearing one Private one not from link

Postby k829king » 2020-07-27 16:21

no difference
k829king
 
Posts: 68
Joined: 2018-08-26 09:47

Re: Two firefox appearing one Private one not from link

Postby Head_on_a_Stick » 2020-07-27 17:10

k829king wrote:I have my /usr/share/applications/firefox-esr.desktop configured with the -private.

You should show us the actual file rather than describe it vaguely.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12486
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Two firefox appearing one Private one not from link

Postby k829king » 2020-07-28 05:31

here you go
Code: Select all
[Desktop Entry]
Name=Firefox ESR
Name[bg]=Firefox ESR
Name[ca]=Firefox ESR
Name[cs]=Firefox ESR
Name[el]=Firefox ESR
Name[es]=Firefox ESR
Name[fa]=Firefox ESR
Name[fi]=Firefox ESR
Name[fr]=Firefox ESR
Name[hu]=Firefox ESR
Name[it]=Firefox ESR
Name[ja]=Firefox ESR
Name[ko]=Firefox ESR
Name[nb]=Firefox ESR
Name[nl]=Firefox ESR
Name[nn]=Firefox ESR
Name[no]=Firefox ESR
Name[pl]=Firefox ESR
Name[pt]=Firefox ESR
Name[pt_BR]=Firefox ESR
Name[ru]=Firefox ESR
Name[sk]=Firefox ESR
Name[sv]=Firefox ESR
Comment=Browse the World Wide Web
Comment[bg]=Сърфиране в Мрежата
Comment[ca]=Navegueu per el web
Comment[cs]=Prohlížení stránek World Wide Webu
Comment[de]=Im Internet surfen
Comment[el]=Περιηγηθείτε στον παγκόσμιο ιστό
Comment[es]=Navegue por la web
Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
Comment[fi]=Selaa Internetin WWW-sivuja
Comment[fr]=Navigue sur Internet
Comment[hu]=A világháló böngészése
Comment[it]=Esplora il web
Comment[ja]=ウェブを閲覧します
Comment[ko]=웹을 돌아 다닙니다
Comment[nb]=Surf på nettet
Comment[nl]=Verken het internet
Comment[nn]=Surf på nettet
Comment[no]=Surf på nettet
Comment[pl]=Przeglądanie stron WWW
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[ru]=Обозреватель Всемирной Паутины
Comment[sk]=Prehliadanie internetu
Comment[sv]=Surfa på webben
GenericName=Web Browser
GenericName[bg]=Интернет браузър
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[de]=Webbrowser
GenericName[el]=Περιηγητής ιστού
GenericName[es]=Navegador web
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[hu]=Webböngésző
GenericName[it]=Browser Web
GenericName[ja]=ウェブ・ブラウザ
GenericName[ko]=웹 브라우저
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ru]=Интернет-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sv]=Webbläsare
X-GNOME-FullName=Firefox ESR Web Browser
X-GNOME-FullName[bg]=Интернет браузър (Firefox ESR)
X-GNOME-FullName[ca]=Navegador web Firefox ESR
X-GNOME-FullName[cs]=Firefox ESR Webový prohlížeč
X-GNOME-FullName[el]=Περιηγήτης Ιστού Firefox ESR
X-GNOME-FullName[es]=Navegador web Firefox ESR
X-GNOME-FullName[fa]=مرورگر اینترنتی Firefox ESR
X-GNOME-FullName[fi]=Firefox ESR-selain
X-GNOME-FullName[fr]=Navigateur Web Firefox ESR
X-GNOME-FullName[hu]=Firefox ESR webböngésző
X-GNOME-FullName[it]=Firefox ESR Browser Web
X-GNOME-FullName[ja]=Firefox ESR ウェブ・ブラウザ
X-GNOME-FullName[ko]=Firefox ESR 웹 브라우저
X-GNOME-FullName[nb]=Firefox ESR Nettleser
X-GNOME-FullName[nl]=Firefox ESR webbrowser
X-GNOME-FullName[nn]=Firefox ESR Nettlesar
X-GNOME-FullName[no]=Firefox ESR Nettleser
X-GNOME-FullName[pl]=Przeglądarka WWW Firefox ESR
X-GNOME-FullName[pt]=Firefox ESR Navegador Web
X-GNOME-FullName[pt_BR]=Navegador Web Firefox ESR
X-GNOME-FullName[ru]=Интернет-браузер Firefox ESR
X-GNOME-FullName[sk]=Internetový prehliadač Firefox ESR
X-GNOME-FullName[sv]=Webbläsaren Firefox ESR
Exec=/usr/lib/firefox-esr/firefox-esr %u -private
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox-esr
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox-esr
StartupNotify=true

what I meant was it is as per system generated I have only changed the
Code: Select all
Exec=/usr/lib/firefox-esr/firefox-esr %u
line to
Code: Select all
Exec=/usr/lib/firefox-esr/firefox-esr %u -private
k829king
 
Posts: 68
Joined: 2018-08-26 09:47

Re: Two firefox appearing one Private one not from link

Postby Head_on_a_Stick » 2020-07-28 06:10

Try
Code: Select all
Exec=/usr/lib/firefox-esr/firefox-esr -private %u

And it's better to copy /usr/share/applications/firefox-esr.desktop to ~/.local/share/applications/firefox-esr.desktop and edit that file instead to prevent your changes being overwritten when the package is updated.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12486
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Two firefox appearing one Private one not from link

Postby k829king » 2020-07-28 08:32

thankyou @HOAS your steer solved part of it and the other appears to be the parameter.
I found I already had a ~/.local/share/applications/firefox-esr.desktop
But that one contained
Code: Select all
Exec=/usr/lib/firefox-esr/firefox-esr %u --private-window

So when I made the /usr/share/applications/firefox-esr.desktop and ~/.local/share/applications/firefox-esr.desktop identical I stopped getting two windows.
But I then established it needs to be
Code: Select all
Exec=/usr/lib/firefox-esr/firefox-esr --private-window %u
and not
Code: Select all
Exec=/usr/lib/firefox-esr/firefox-esr -private- %u
k829king
 
Posts: 68
Joined: 2018-08-26 09:47


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable