Using 'sleep 1m && gnome-terminal -e gedit' as the command in the "Startup
Applications" does not work: 'sleep' executes for a minute but GEdit is not
launched afterwards). Simply 'gedit' works. "Startup Applications"
apparently has troubles with "&&". The fix I proposed (write everything
I have just successfully up-voted aloniv's post. Are you sure you can
up-vote in other threads? If not, it must deal with your Web browser
settings or with some add-on.
Hmmm... I do not know why that does not work. Weirdly enough, it works if
you write 'sleep 1m && gedit todo.txt' in an executable file and choose that
file as the "Command" in the "Startup Applications".
Right. The definition of the display variable can be before in the crontab
so that there is no need to define it for each command.
To execute graphical application, such as GEdit, the DISPLAY variable must be
specified in the crontab:
DISPLAY=:0.0
You can "Add" to the "Startup Applications" (in the "System Settings") a
"Command" that start with 'sleep 1h &&'. For example, if you want GEdit to
show your TODO text file (I assume it is "todo.txt" in your home folder) one
hour after you logged into the graphical session:
sleep 1h &&