更新时间:2023-01-30 08:31:11
You need to create a desktop entry file for your application (see here) and to put it in user's $HOME/.config/autostart
directory.
启动Window Manager时,该目录中的任何桌面条目文件都会执行(请参见此处).
Any desktop entry file in that dir will get executed when a Window Manager starts up (see here).
为此,通常需要手动创建桌面条目文件(就是这样,而不是通过C ++代码/脚本),然后只需通过C ++代码安装在该目录中即可.
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.