Re: [Utopia] [patch] add support for digital cameras



On Thu, 2004-08-26 at 03:55 +0200, David Zeuthen wrote:
>         #!/bin/sh
>         MOUNT_POINT=`hal-get-property --udi $1 --key block.device`
>         if test "$MOUNT_POINT" == ""; then
>             gthumb --import-photos
>         else
>             gthumb $MOUNT_POINT
>         fi

Uhh, I shouldn't be writing patches so late in the night; this wrapper

        #!/bin/sh
        MOUNT_POINT=`hal-get-property --udi "$1" --key volume.mount_point`
        if test "$MOUNT_POINT" == ""; then
            gthumb --import-photos
        else
            gthumb $MOUNT_POINT
        fi
        
works a lot better. Oh well :-)

Cheers,
David



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