Comment 12 for bug 315932

Revision history for this message
Luca Barbieri (luca-barbieri) wrote :

How about using my solution then?

It does work automagically, as long as the shell is running locally.

It is essentially an improved version of the alert alias, that runs automatically on each prompt, but only if the terminal is inactive.

It needs a command line way to find out if the terminal is active or not, which is provided by the "xactive" C program I posted here, since I couldn't find a way to do the same easily otherwise.

This only adds the slight hassle of packaging the xactive program too, noting it either needs a dependency on libx11, or to be changed to load it dynamically.

Also, the Ubuntu developer doing this will need to figure whether to put it into the bash package or in a separate package, keeping in mind that xactive and libnotify-bin will need to be installed too for it to do anything at all.

On the other hand, the "alert" alias is in my opinion much less useful, especially because the user needs to realize it exists, and I doubt a lot of people will notice it.