Comment 12 for bug 368175

Revision history for this message
Menno (m-tjoelker) wrote : Re: [Bug 368175] Re: Failed to load module "libcanberra-gtk-module.so"

On Wed, 20 May 2009 15:48:28 -0000
Osobimbo <email address hidden> wrote:

Hi,

This is a bit out of order here since it has nothing to do with the actual
problem. It is setting up a bypass to deal with a somewhat clumsy use
of STDERR for other purposes than ouputting error messages.

The problem in your script is in this line:

> $DIALOG --title "photo control" --clear \
> --inputbox "write your number" 8 25 2> $tempfile

The error message is put in $tempfile and causes trouble later. If you
use stdout for the xdialog output instead of stderr, it will be OK again.
Replace the line above by:

> $DIALOG --title "photo control" --clear --stdout\
> --inputbox "write your number" 8 25 >$tempfile

The command option has been added, the redirection of stderr (2)
has been changed in redirection of stdout.

Kind regards,

Menno