gestion_table_tournante_libre/electron
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
..
fichiers.js [FIX] electron: open folders with xdg-open on Linux, report its failure 2026-10-23 10:20:45 -04:00
impression.js [UPD] licence: dual AGPL-3.0-or-later or LiLiQ-R+, SPDX headers 2026-10-20 09:02:17 -04:00
main.js [UPD] licence: dual AGPL-3.0-or-later or LiLiQ-R+, SPDX headers 2026-10-20 09:02:17 -04:00
preload.cjs [ADD] storage: binary read, image picker, content-named logo files 2026-10-22 21:52:24 -04:00