Let's talk about how you can add functionality in Qt application to configure startup of the application. For example, we have a settings window, and we want to make the ability to customize the dialog box Autorun application.
In contrast to the
autorun in Windows
, where you can use
and make changes to the registry on Linux you need to create a custom executable file that will be responsible for autostart applications when a user logs into the operating system.
Say the name of the project and hence the name of the executable file will
, then you need to create an executable file
the following path:
The contents of the executable file to do the same to other startup files of other applications that are guaranteed to get the desired result. In the case of
Ubuntu Linux 15.04 / 15.10
contents of the file will receive the following: