Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugarGnumeric
blob: 3f06cb4d2cec67fdbfbbae33d65df4c6ee1c61a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
while [ -n "$2" ] ; do
     case "$1" in
         -b | --bundle-id)     export SUGAR_BUNDLE_ID="$2" ;;
         -a | --activity-id)   export SUGAR_ACTIVITY_ID="$2" ;;
         -o | --object-id)     export SUGAR_OBJECT_ID="$2" ;;
         -u | --uri)           export SUGAR_URI="$2" ;;
         *) echo unknown argument $1 $2 ;;
     esac
     shift;shift
done
export LD_PRELOAD="$SUGAR_BUNDLE_PATH/lib/libsugarize.so"
export NET_WM_NAME="Gnumeric"
exec gnumeric --no-splash

# We need bundle id and activity id

if [ -z "$bundle_id" -o -z "$activity_id" ] ; then
    echo ERROR: bundle-id and activity-id arguments required
    echo Aborting
    exit 1
fi 
export LD_PRELOAD="$SUGAR_BUNDLE_PATH/kib/libsugarize.so"
export NET_WM_NAME="Gnumeric"
        

exec gnumeric --no-splash