Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
k829king
Posts: 133
Joined: 2018-08-26 09:47

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

#1 Post by k829king »

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.

User avatar
sickpig
Posts: 592
Joined: 2019-01-23 10:34
Has thanked: 1 time
Been thanked: 1 time

Re: Two firefox appearing one Private one not from link

#2 Post by sickpig »

./.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

k829king
Posts: 133
Joined: 2018-08-26 09:47

Re: Two firefox appearing one Private one not from link

#3 Post by k829king »

no difference

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Two firefox appearing one Private one not from link

#4 Post by Head_on_a_Stick »

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.
deadbang

k829king
Posts: 133
Joined: 2018-08-26 09:47

Re: Two firefox appearing one Private one not from link

#5 Post by k829king »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Two firefox appearing one Private one not from link

#6 Post by Head_on_a_Stick »

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.
deadbang

k829king
Posts: 133
Joined: 2018-08-26 09:47

Re: Two firefox appearing one Private one not from link

#7 Post by k829king »

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 

Post Reply