gestion_table_tournante_libre/src/interface/badges
Mathieu Benoit 00497a23ec [FIX] electron: open folders with xdg-open on Linux, report its failure
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
2026-10-23 10:20:45 -04:00
..
Badges.navigateur.test.js [FIX] electron: open folders with xdg-open on Linux, report its failure 2026-10-23 10:20:45 -04:00
modele.js [ADD] badges: participant logo in the gap under the tours, never text 2026-10-23 02:08:53 -04:00
modele.test.js [ADD] badges: participant logo in the gap under the tours, never text 2026-10-23 02:08:53 -04:00
Reedition.svelte [REF] organisation: rename appartenance everywhere, file keys included 2026-10-20 17:34:24 -04:00
SectionBadges.svelte [IMP] badges: write PDF and CSV into the event folder, open that folder 2026-10-22 06:22:50 -04:00