Scheduler: Added support for home directories not in /home

This relates to issue #22.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/24/head
Mavridis Philippe 4 years ago
parent d7f74c30f3
commit 29887ca197
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -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";

Loading…
Cancel
Save