Running a Qt application at startup

后端 未结 1 833
北恋
北恋 2020-12-19 14:40

I wrote a Qt application that is going to run on Linux. It supposed to run at startup.

It\'s supposed to run on every Linux- Suse, RedHat etc.

What script sh

相关标签:
1条回答
  • 2020-12-19 15:35

    You need to create a desktop entry file for your application (see here) and to put it in user's $HOME/.config/autostart directory.

    Any desktop entry file in that dir will get executed when a Window Manager starts up (see here).

    To do this, usually you'll need to create your desktop entry file by hand (that's it, not via C++ code/script) and to just install in that directory via C++ code.

    0 讨论(0)
提交回复
热议问题