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