On my Ubuntu 20 desktop, I've scheduled gedit
to run a minute from now, but nothing happens. Why is that?
$ echo "echo foo > at.sux" | at now + 1
warning: commands will be executed using /bin/sh
job 8 at Tue Jun 2 21:47:00 2020
$ echo `which gedit` | at now + 1
warning: commands will be executed using /bin/sh
job 9 at Tue Jun 2 21:47:00 2020
$ atq
9 Tue Jun 2 21:47:00 2020 a dandv
8 Tue Jun 2 21:47:00 2020 a dandv
# A minute later
$ cat at.sux
foo
$ ps auxf | grep gedit # nothing but grep
$ `which gedit` # launches gedit
I tried echo "gedit &" | at now + 1
as suggested in the comment, but gedit
is still not running a minute later.
&
, no difference on Ubuntu. Edited the question.echo $DISPLAY
returns:0
. – Dan Dascalescu Jun 03 '20 at 04:51