You are not logged in.

#26 2023-04-09 20:06:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,242

Re: [Solved] External links not opening in firefox

Skipping perl, comparing "realpath /proc/$$/fd/2" and "/proc/$$/fd/2" might do.
If there're no pipe, file or pts but

[ "$(realpath /proc/$$/fd/2)" = "/proc/$$/fd/2" ]

the filehandle is (probably?) closed.

[ -t 2 ]

won't work (because it fails on 2>/dev/null)

Offline

#27 2023-04-14 10:19:53

ache
Member
From: Sorry, I'm french
Registered: 2019-09-03
Posts: 15
Website

Re: [Solved] External links not opening in firefox

Fixed on Firefox side.
Should be deployed in version 114.

Offline

#28 2023-04-15 16:51:23

cvmd
Member
Registered: 2023-04-06
Posts: 17

Re: [Solved] External links not opening in firefox

Thanks all! This was very helpful. Again, I consider my question answered and problem solved.

Offline

#29 2023-04-15 20:02:20

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,242

Re: [Solved] External links not opening in firefox

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#30 2023-04-21 16:14:56

B7H7D7
Member
Registered: 2018-01-19
Posts: 34

Re: [Solved] External links not opening in firefox

@ache : je profite que tu es français pour m'adresser à toi dans ma langue. Merci pour ta compréhension.

Je m'arrache le peu de cheveux qui me restent avec ce problème discord / firefox.
Suivant tes recommendations j'ai modifié les scripts comme suit :

: grep -i exec /usr/bin/firefox
exec /usr/lib/firefox/firefox "$@" 2>/dev/null

: grep -i exec .local/share/plasma_icons/firefox.desktop
Exec=/usr/bin/firefox --private-window %u
Exec=/usr/bin/firefox --new-window %u
Exec=/usr/bin/firefox %u

: grep -i exec /usr/share/applications/firefox.desktop
Exec=/usr/bin/firefox %u
Exec=/usr/bin/firefox --new-window %u
Exec=/usr/bin/firefox --private-window %u

J'ai aussi modifié l'appel de l'application pour firefox.desktop dans Plasma.

Mais je ne peux toujours pas suivre les liens dans discord (youtube, PDFs,...).

J'ai probablement mal compris tes recommendations.

Peux-tu et/ou pouvez-vous m'aider ?
Merci,
P.

Offline

#31 2023-04-21 16:43:40

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,242

Re: [Solved] External links not opening in firefox

J'ai probablement mal compris tes recommendations.

Yup, try

exec /usr/lib/firefox/firefox "$@" >/dev/null 2>&1

Also make sure that the position is reached in the /usr/bin/firefox script.

Merci pour ta compréhension.

The forum language is (but for the special foreign language board) still bad English in order to benefit the widest possible audience.
Thanks for your understanding wink

Offline

#32 2023-04-21 18:15:20

B7H7D7
Member
Registered: 2018-01-19
Posts: 34

Re: [Solved] External links not opening in firefox

With this modification the problem seems circumvented : discord links open in firefox, finally.

Thank you so much Seth.

P.

Offline

#33 2025-10-11 07:21:52

iambatman
Member
Registered: 2025-07-26
Posts: 2

Re: [Solved] External links not opening in firefox

cvmd wrote:

Redirection is indeed what fixes the bug!

I played around with @seth's suggestion and it's not actually setting the variables, but rather this line `/usr/bin/firefox "$@" > /tmp/firefox.more.dbg 2>&1 &` that fixes the issue. The part about setting variables is unneeded.

Now I'm just following @ache's solution of editing /usr/bin/firefox and /usr/../firefox.desktop.

Thanks again both @seth and @ache. This has been driving me mad for over a month! Hope the bug is fixed next firefox update...

I consider my question answered now.

I have tried both: editing /usr/bin/firefox to add redirection (to /dev/null) as well as /usr/.../firefox.desktop to change the first Exec= value from /usr/lib/firefox/firefox to /usr/bin/firefox/firefox. Yet, the problem persists.
Does anyone have a fix for this?

Thanks in advance :)

Offline

#34 2025-10-11 12:08:57

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,242

Re: [Solved] External links not opening in firefox

from /usr/lib/firefox/firefox to /usr/bin/firefox/firefox

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855 - the above is most likely wrong somehow.

Does "xdg-open https://archlinux.org/" open the url in FF?
If not you might just have to fix that

xdg-settings get default-web-browser

On a formal notice, in future please avoid necro-hijacking solved threads.

Offline

Board footer

Powered by FluxBB