i try to open a terminal using gnome-terminal after system reboot,so i used the gnome-terminal in crontab.In normal cron it works. ex : */1 * * * * export DISPLAY=:0 && gnome-terminal but used with reboot option,it doesn't work @reboot export DISPLAY=:0 && gnome-terminal Is there any way to achieve this?
-
I'm using Ubuntu 20.04,there is no autostart directory under .config.– RanjithMay 14 at 6:14
1 Answer
I achieved this without using cron.
Just following these steps:
Type "Startup Applications" in the search bar.
Click on the Startup Applications option. Then click "Add".
In the "name" field, type
Terminal
.In the "command" field, type
gnome-terminal
.Click "Add".
You're done! The next time you login, the terminal will launched automatically.