aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-opie/opie-alarm/opie-alarm/dirdefines-2.patch
blob: c457941f84f7b5efd0970d4a45fd4f687dd75ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- opiealarm/opiealarm.c
+++ opiealarm/opiealarm.c
@@ -394,13 +394,13 @@ int resume ( int resuspend )
 
 				setenv ( "LOGNAME", "root", 1 );
 				setenv ( "HOME", "/root", 1 );
-				setenv ( "LD_LIBRARY_PATH", "/opt/QtPalmtop/lib", 1 );
-				setenv ( "QTDIR", "/opt/QtPalmtop", 1 );
+				setenv ( "LD_LIBRARY_PATH", OPIE_LIBDIR, 1 );
+				setenv ( "QTDIR", OPIE_QTDIR, 1 );
 
 				remove_pidfile ( );
 
 				// no need for system() since this process is no longer useful anyway
-				execv ( "/opt/QtPalmtop/bin/qcop", argv );
+				execv ( OPIE_BINDIR "/qcop", argv );
 
 				perror ( "exec for qcop failed" );
 				return 5;