[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

anyone using interactive bugscripts



Hi all,

is anyone using interactive bugscripts? I mean scripts in
/usr/share/bug/ which interactively demand answers from the user.

I made a quick search on my system and I only found the texlive packages
using "getkey" to force a user to read a text before the script is
executed. In that case the interactive mode is superfluous since one can
use the presubj file to show such texts to the user.

The problem is, that non-console applications like reportbug-ng have to
call a terminal to start interactive bugscripts. Unfortunately some
terminals (if not all) fork upon startup so the calling command just
returns. An example:

If I call:

  os.system("/usr/share/bug/foo")

the command returns when foo has finished. But if I call

  os.system("/usr/bin/x-terminal-emulator -e '/usr/share/bug/foo'")

the command returns intermediately, while foo is still running in the
background. This makes it quite tricky to get the output of the script.

I want to evaluate who is using this feature, if it turns out that no
one does, maybe I can talk with the reportbug guys to depreciate it.


Cheers,

Bastian

-- 
Bastian Venthur                                      http://venthur.de
Debian Developer                                 venthur at debian org


Reply to: