summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/schedule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schedule.cpp b/src/schedule.cpp
index 27acc0b..7c38efc 100644
--- a/src/schedule.cpp
+++ b/src/schedule.cpp
@@ -365,7 +365,7 @@ TQString Schedule::createScanScript()
ts << "export HOSTNAME" << "\n";
ts << TQString("PATH=%1").arg(TQString(getenv("PATH"))) << "\n";
ts << "export PATH" << "\n";
- ts << "DCOPSERVER=`cat /home/${USER}/.DCOPserver_${HOSTNAME}_:0 | grep local`" << "\n";
+ ts << "DCOPSERVER=`cat ${HOME}/.DCOPserver_${HOSTNAME}_:0 | grep local`" << "\n";
ts << "export DCOPSERVER" << "\n";
ts << "DISPLAY=:0" << "\n";
ts << "export DISPLAY" << "\n";