Thanks for your report. I'm closing it because this is not a bug but
rather a support request.

In order to allow cron to open graphical apps, you need to allow access
control to the xserver for the cron user. The easiest is to disable
access control with the command "xhost +"

The second thing to do is to set the DISPLAY to where the application
must be launched. If it's on your local xserver, you can do this with
the command "export DISPLAY:0.0" at the beginning of your script.

For example:
$ xhost +
access control disabled, clients can connect from any host
$ echo "* * * * * DISPLAY=:0.0 gedit" | crontab -
$

And you'll popup a new gedit every minute (pretty useless indeed :) )

I hope this helps.

** Changed in: cron (Ubuntu)
       Status: New => Invalid

-- 
cron can't start graphical apps even when display is stipulated
https://bugs.launchpad.net/bugs/250195
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to