On Linux, shell.openPath returns success within milliseconds without
waiting for xdg-open, even when xdg-open exits 3 or the path is gone:
« Ouvrir le dossier » and « Ouvrir dans l'explorateur » then did nothing
and said nothing. The shell now runs xdg-open itself, detached, its
stderr in an unlinked temporary file, and reads its exit: a failure
becomes NON_DISPONIBLE with xdg-open's last line, shown by the button.
Windows and macOS keep shell.openPath. The startup trial checks both
buttons reach a stub xdg-open with the right folder.
Checked: node 6871/6871, long 44/44, real Electron trial conforms.
--- FR ---
[FIX] electron : ouvrir un dossier par xdg-open sous Linux, et son échec
Sous Linux, shell.openPath rend un succès en quelques millisecondes sans
attendre xdg-open, même quand celui-ci sort à 3 ou que le chemin manque :
« Ouvrir le dossier » et « Ouvrir dans l'explorateur » ne faisaient rien
et ne disaient rien. La coquille lance désormais xdg-open elle-même,
détaché, son erreur dans un fichier temporaire délié, et lit son issue :
un échec devient NON_DISPONIBLE avec sa dernière ligne, montré au bouton.
Windows et macOS gardent shell.openPath. L'essai de démarrage vérifie que
les deux boutons atteignent un faux xdg-open avec le bon dossier.
Vérifié : node 6871/6871, longue 44/44, essai Electron réel conforme.
Assisted-by: Claude Opus 5.5