I'm trying to start my applications on reboot in crontab. My applications 'userInterface' and 'Application' communicate to eachother using DBus and will start on boot. Unfortunately the DBus communication doesn't work when starting the applications as a cronjob.
The crontab code I used:
@reboot sleep 10; export DISPLAY=:0 && /home/pi/userInterface
@reboot sleep 15; export DBUS_SESSION_BUS_ADDRESS='unix:abstract=/var/run/user/1000/bus' && /home/pi/Application
Still the DBus connection doesn't work. The processes do start and do connect to the DBus. When starting both applications using the terminal, the DBus communication works fine.
Any ideas how to setup the DBus communication properly using crontab?
Thanks in advance