Saturday, February 20, 2016

scripts - How can I run an application in gnome-terminal automatically when booting?

I need to run an application automatically when Ubuntu starts. I've got this app running without opening the terminal. However, this application displays some information in a terminal window and, therefore, I need that the app runs strictly after opening gnome-terminal (automatically). To this end I've tried to create a script file in init.d as it is explained here. The content of the script is:


#!/bin/bash
cd /home/mediambient/programa
/usr/bin/gnome-terminal -e ./driver &

This works if I execute the file, but does not seem to do anything when I reboot the computer. Can anyone tell me what I'm doing wrong?


Thanks in advance.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...