I have Ubuntu16 and I have ui application which I want to start automatically once the user logs in. For this I have created a script which has below commands:
#!/bin/sh
cd /home/super/Documents/
./app
Running this script launches the UI application. Now I have added the application to launch automatically in startup applications in ubuntu. I have added below command
/bin/bash /home/super/Documents/start_app.sh
So at startup, it runs the above command which starts the script and then the UI application also starts normally. This all is working fine.
But I was wondering if there is any command available which when run can automatically add the script in the list of start up applications. I am actually preparing a script file setup.sh which will install and configure the whole application on clients machine. I will have to give this script to client so that he can run it and install the software, so I was wondering if there is any command available which can add the application in startup application, then I can also add those commands in setup.sh
Can any give some good suggestions. Thanks
EDIT:
desktop entry file:
[Desktop Entry]
Version=1.0
Name=OPC
Comment=OPC Client Application
Exec=/home/super/Documents/app
Icon=/home/super/Documents/img/ch_logo.jpeg
Path=/home/super/Documents
Terminal=false
Type=Application
Categories=Utility;Application;