$OpenBSD: patch-src_Clients_MainApp_f-spot_in,v 1.1 2010/08/21 20:34:34 ajacoutot Exp $
--- src/Clients/MainApp/f-spot.in.orig	Sun Aug  8 14:39:53 2010
+++ src/Clients/MainApp/f-spot.in	Sat Aug 21 22:21:43 2010
@@ -1,10 +1,11 @@
-#!/bin/bash
+#!/bin/sh
 
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
 turtledir=@TURTLEDIR@
 
+export LD_LIBRARY_PATH=${TRUEPREFIX}/lib/f-spot
 EXE_TO_RUN="$libdir/f-spot/f-spot.exe"
 
 if test "x$DBUS_SESSION_BUS_ADDRESS" == "x"; then
@@ -95,5 +96,5 @@ elif $run_valgrind; then
 elif $run_strace; then
 	strace -ttt -f -o /tmp/f-spot.strace mono $MONO_OPTIONS $EXE_TO_RUN "$@"
 else
-	exec -a @PACKAGE@ $DBUSLAUNCH mono $MONO_OPTIONS $EXE_TO_RUN "$@"
+	exec $DBUSLAUNCH mono $MONO_OPTIONS $EXE_TO_RUN "$@"
 fi
