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) (unidiff)
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
@@ -367,13 +367,13 @@ int resume ( int resuspend )
367 367
368 setenv ( "LOGNAME", "root", 1 ); 368 setenv ( "LOGNAME", "root", 1 );
369 setenv ( "HOME", "/root", 1 ); 369 setenv ( "HOME", "/root", 1 );
370 setenv ( "LD_LIBRARY_PATH", "/opt/QtPalmtop/lib", 1 ); 370 setenv ( "LD_LIBRARY_PATH", OPIE_LIBDIR, 1 );
371 setenv ( "QTDIR", "/opt/QtPalmtop", 1 ); 371 setenv ( "QTDIR", OPIE_QTDIR, 1 );
372 372
373 remove_pidfile ( ); 373 remove_pidfile ( );
374 374
375 // no need for system() since this process is no longer useful anyway 375 // no need for system() since this process is no longer useful anyway
376 execv ( "/opt/QtPalmtop/bin/qcop", argv ); 376 execv ( OPIE_BINDIR "/qcop", argv );
377 377
378 perror ( "exec for qcop failed" ); 378 perror ( "exec for qcop failed" );
379 return 5; 379 return 5;