You are not logged in.
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
Fixed on Firefox side.
Should be deployed in version 114.
Offline
Thanks all! This was very helpful. Again, I consider my question answered and problem solved.
Offline
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
@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
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
Offline
With this modification the problem seems circumvented : discord links open in firefox, finally.
Thank you so much Seth.
P.
Offline
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
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