diff options
author | Fabian Müller <fmueller@owncloud.com> | 2021-10-14 19:35:56 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-10-15 14:39:40 +0300 |
commit | a51a22797317a0c12f6f4fee39465494807aad67 (patch) | |
tree | c9e4e3df1c85bc3ee7b5a8f475fb8924852a9372 /CMakeLists.txt | |
parent | cfa0554a18e3543951e51f0f0b2dc0ccf58a4e41 (diff) |
Fix icon name in desktop file with ownBrander themes
Fixes broken icon reference in desktop entries for some branded build themes.
The icon files are not named by the executable name, but by the short name.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 756d51676..3de61389e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,6 +149,9 @@ if(BUILD_CLIENT) find_package(SQLite3 3.9.0 REQUIRED) endif() +# in the ownBrander themes, the icon files are named after the shortname +# the theme included in this repository defines a custom icon name, therefore we set the shortname as a fallback if the +# theme does not define the variable if (NOT DEFINED APPLICATION_ICON_NAME) set(APPLICATION_ICON_NAME "${APPLICATION_SHORTNAME}") endif() |