adding this line
gnome-terminal -e "gedit test.txt"
to the /etc/rc.d/rc.local
works fine.
but can not get it to sleep 10 seconds before executing that command.
tried
sleep 10
gnome-terminal -e "gedit test.txt"
did not work.
tried :
gnome-terminal -e "sleep 10 && gedit test.txt"
did not work.
UPDATE
it looks like the problem might be..
/etc/rc.d/rc.local
is actually executing the commands before the desktop fully loads.
i tried increasing "sleep" to "sleep 120" and i noticed the desktop would not load for 120 seconds.