YORIK’S COFFEE CORNER

You are currently viewing a single post of this guestblog.

Click here to go back the complete page. I would be glad to hear your comments, so don’t hesitate to leave me your feedback below. It will appear on the main guestblog page.


in categories  linux  permalink:  66   posted on 07.04.2011 15:25
From Yorik

DraftSight launcher for linux 64bits systems


I modified a bit the DraftSight launcher so it behaves correctly on a 64bit system and adopts your current gtk theme. You must of course take care of having the correct gtk engines in /usr/lib32 (usually by simply installing ia32-libs-gtk).
#!/bin/sh
BINDIR="/opt/dassault-systemes/draftsight/bin"
BASENAME="DraftSight"
export GTK_PATH=/usr/lib32/gtk-2.0/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$BINDIR:$BINDIR/../lib"
export QT_PLUGIN_PATH="$BINDIR:$BINDIR/../plugins"
if [ -d /usr/lib32/gconv ]; then
  export GCONV_PATH=/usr/lib32/gconv
fi
BINARY=$BINDIR/"$BASENAME.bin"
cd "$BINDIR"
if [ "$#" -gt 0 ]; then
    "$BINARY" -style gtk "$@"
else
    "$BINARY" -style gtk
fi

First and foremost, your name:

And your message:

To publish it, just press this ...