From 2b97142421c04098b72021b0526873a54ba951d7 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 07 Jul 2007 16:49:19 +0000 Subject: opiealarm: substitute hardcoded paths with defines --- diff --git a/core/opiealarm/opiealarm.c b/core/opiealarm/opiealarm.c index 422865c..b948ef2 100644 --- a/core/opiealarm/opiealarm.c +++ b/core/opiealarm/opiealarm.c @@ -367,13 +367,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; -- cgit v0.9.0.2