How to set my application's desktop icon for Linux: KDE, Gnome etc?

前端 未结 3 1047
遥遥无期
遥遥无期 2021-02-05 20:36

I have a cross platform program that runs on Windows, Linux and Macintosh. My windows version has an Icon but I don\'t know how to make have one for my Linux build. Is there a s

3条回答
  •  没有蜡笔的小新
    2021-02-05 21:02

    KDE community with it's KDE 4 series started to use CMake as a build system. They developed a CMake macro that knows how to set an icon for your application regardles of the platform (windows (embedded in exe), mac (.app bundles), linux (.desktop files) etc.)

    Maybe you can use it.

提交回复
热议问题