Picasa 3.0 Linux Override

Picasa works great for me despite one major annoyance: when I export a picture, Iceweasel opens to the folder I exported the picture to.

I really don't want it to do this, and am disappointed its not configurable.

I hunted down the instigator and overrode its attempt:

/opt/google/picasa/3.0$ sudo vim ./bin/xdg-utils-1.0.2/scripts/xdg-open

open_generic()
{        
    IFS=":"
    exit_success;
    for browser in $BROWSER; do
        if [ x"$browser" != x"" ]; then

            IFS=' '
            browser_with_arg=${browser//'%s'/"$1"}

            if [ x"$browser_with_arg" = x"$browser" ]; then "$browser" "$1";
            else $browser_with_arg;
            fi

            if [ $? -eq 0 ]; then exit_success;
            fi
        fi
    done 

    exit_failure_operation_impossible "no method available for opening '$1'"
}        

Its the line: "exit_success;" right after 'IFS=":"' that makes it not open a browser every time I export a picture.

By Albert on September 27, 2009 9:30 PM

Categories: