You are not logged in.

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

seth
Member
Registered: 2012-09-03
Posts: 62,207

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: 13
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: 16

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
Registered: 2012-09-03
Posts: 62,207

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
Registered: 2012-09-03
Posts: 62,207

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

Board footer

Powered by FluxBB