Change the format of /usr/share/bug/*/script
-----BEGIN PGP SIGNED MESSAGE-----
I'd like to suggest changing the format of the bug scripts for allowing non-text user interfaces to display important information.
This is the history:
1. I'm writing a GTK+ UI for reportbug, now landed in trunk thanks to Sandro Tosi
2. When filing in bugs for packages having bug scripts, the information don't show up in GTK+ because it's fully shell script, so the user needs to switch to the terminal (if he can guess he has to)
3. Talking in #debian OFTC we discussed about reportbug-ng to have problems in handling those scripts
The bug script can ask twice for input and display output
reportbug-ng: opens a terminal and popup-ups it to the user running the script
reportbug gtk2 ui: uses FIFO and exports an hacked cat() function and the result is pretty good the UI (not applied)
I know it's bad to break compatibility but I also think keeping things with hacks and far from the GUI prospective can become obsolete and non user-friendly.
First solution: change the scripts to use a bash function instead of cat <<EOF, like yesno() create a function display() without hacking cat() and keep going using a FIFO to deal with the UI
Second solution: I don't know, I'm asking to you
Many front-ends work on top of shell scripts, but the problem here is that the shell is interactive. If you think it's still better to spawn a terminal in the GUI to avoid shell hacks I won't bother anymore.
http://syx.googlecode.com - Smalltalk YX
http://lethalman.blogspot.com - Thoughts about computer technologies
http://www.ammazzatecitutti.org - Ammazzateci tutti
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-----END PGP SIGNATURE-----