I'm trying to have crontab run deluge-gtk run at a specified time but for some reason nothing happens. I'm on Debian 9.4 (stretch).

Here is what I have on my crontab file:

30 16 * * * export DISPLAY=:0 && /usr/bin/deluge --ui=gtk

I've also tried

30 16 * * * export DISPLAY=:0 && /usr/bin/deluge-gtk

None of them work. Can I get some enlightenment, please.


With other jobs, cron is working fine. It's just not working for this deluge line I have

  • Before adding the commands to cron, try to run the command as normal command. Also check for which user your are running the cron. – Dipankar Nalui Apr 11 '18 at 2:30
  • I can run the command fine both with my user. As far as I know, crontab jobs created under my user will run as my user, correct? – 4rb3l Apr 11 '18 at 3:16
  • 1
    Think about this for a minute. If you are not logged in, should the application be opened on the currently logged in user's desktop? Remember that Unix is a multi user system. – Kusalananda Apr 11 '18 at 5:39

See Kusalananda's comment about multi-user environment. Try

30 16 * * * DISPLAY=:0 /usr/bin/deluge --ui=gtk

Use crontab -e to edit your personal crontab.

  • I've already tried that on my personal crontab and still nothing – 4rb3l Apr 13 '18 at 5:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.