Re: [Gimp-developer] What to do if gimp should run some other commands before and/or after launching a plugin like xsane??

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

 



On Friday, 23 Mar 2001, Christoph =?ISO-8859-1?Q?Hinterm=FCller?= wrote:

> I do have a question about running or better lounching plugins:
> 
>     how can i get gimp to run some extra commands before and/or
>     after launching a plugin like xsane.
>     eg: a command which tries to activate scanner on scsi bus before
> calling xsane
>         and
>         a command deactivating it again after xsane was closed again
>     But is schould not happen when gimps starts, as it is not 
> necessaryliy that
>     eg the scanner is turend on at that time.
>     And eg the scanner might be turned off again before gimp finishes :(

I would rename xsane to xsane.real and replace it with a shell script
wrapper which does something like:

#!/bin/sh
set -e
/usr/local/lib/xsane/xsane-startup
xsane.real "$@"
/usr/local/lib/xsane/xsane-shutdown

No gimp hackery required.

The two scripts xsane-startup and xsane-shutdown can contain whatever
commands are needed to initialise and turn off your scanner etc.

Austin


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux