@@ -221,15 +221,13 @@ endif()
221
221
include ( AddAppIconMacro )
222
222
set (ownCloud_old ${ownCloud} )
223
223
224
- # set an icon_app_name. For historical reasons we can not use the
225
- # application_shortname for ownCloud but must rather set it manually.
226
- if ( EXISTS ${OEM_THEME_DIR} /OEM.cmake )
227
- set (ICON_APP_NAME ${APPLICATION_SHORTNAME} )
228
- else ()
229
- set (ICON_APP_NAME "owncloud" )
224
+ # For historical reasons we can not use the application_shortname
225
+ # for ownCloud but must rather set it manually.
226
+ if (NOT DEFINED APPLICATION_ICON_NAME)
227
+ set (APPLICATION_ICON_NAME ${APPLICATION_SHORTNAME} )
230
228
endif ()
231
229
232
- kde4_add_app_icon( ownCloud "${theme_dir} /colored/${ICON_APP_NAME } -icon*.png" )
230
+ kde4_add_app_icon( ownCloud "${theme_dir} /colored/${APPLICATION_ICON_NAME } -icon*.png" )
233
231
list (APPEND final_src ${ownCloud} )
234
232
set (ownCloud ${ownCloud_old} )
235
233
@@ -243,11 +241,11 @@ endif()
243
241
if (NOT BUILD_OWNCLOUD_OSX_BUNDLE)
244
242
245
243
if (NOT WIN32 )
246
- file ( GLOB _icons "${theme_dir} /colored/${ICON_APP_NAME } -icon-*.png" )
244
+ file ( GLOB _icons "${theme_dir} /colored/${APPLICATION_ICON_NAME } -icon-*.png" )
247
245
foreach ( _file ${_icons} )
248
- string ( REPLACE "${theme_dir} /colored/${ICON_APP_NAME } -icon-" "" _res ${_file} )
246
+ string ( REPLACE "${theme_dir} /colored/${APPLICATION_ICON_NAME } -icon-" "" _res ${_file} )
249
247
string ( REPLACE ".png" "" _res ${_res} )
250
- install ( FILES ${_file} RENAME ${ICON_APP_NAME } .png DESTINATION ${DATADIR} /icons/hicolor/${_res} x${_res} /apps )
248
+ install ( FILES ${_file} RENAME ${APPLICATION_ICON_NAME } .png DESTINATION ${DATADIR} /icons/hicolor/${_res} x${_res} /apps )
251
249
endforeach ( _file )
252
250
endif (NOT WIN32 )
253
251
0 commit comments