summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2007-07-07 16:49:19 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-16 11:43:49 (UTC)
commit2b97142421c04098b72021b0526873a54ba951d7 (patch) (side-by-side diff)
treefecb325510f285ed7e08bb4a917afc15f6fd2576
parent6e556a6cd6b4edf2abcf08a657c9f0b19a0fca76 (diff)
downloadopie-2b97142421c04098b72021b0526873a54ba951d7.zip
opie-2b97142421c04098b72021b0526873a54ba951d7.tar.gz
opie-2b97142421c04098b72021b0526873a54ba951d7.tar.bz2
opiealarm: substitute hardcoded paths with defines
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/opiealarm/opiealarm.c6
1 files changed, 3 insertions, 3 deletions
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
@@ -368,11 +368,11 @@ 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" );