1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-09 19:15:43 +02:00

Nautilus Overlays: Rename icons according to branding.

Added a script that renames the icons and patches the python file for
nautilus.
This commit is contained in:
Klaas Freitag 2014-08-29 20:01:39 +02:00
parent 5d19426930
commit 4d33773cef
3 changed files with 11 additions and 2 deletions
shell_integration

View File

@ -13,7 +13,10 @@ if( UNIX AND NOT APPLE )
FOREACH(size 128x128 16x16 256x256 32x32 48x48 64x64 72x72)
file(GLOB files "${size}/*.png")
install(FILES ${files} DESTINATION ${ICON_DIR}/${size}/apps)
FOREACH( file ${files} )
STRING(REPLACE "oC" ${APPLICATION_NAME} brandedName ${file})
install(FILES ${file} DESTINATION ${ICON_DIR}/${size}/apps RENAME ${brandedName})
ENDFOREACH(file)
ENDFOREACH(size)
endif()

View File

@ -1 +1,3 @@
install(FILES ownCloud.py DESTINATION ${DATADIR}/nautilus-python/extensions)
configure_file(fixbranding.sh.in ${CMAKE_CURRENT_BINARY_DIR}/fixbranding.sh)
install(FILES ${APPLICATION_EXECUTABLE}.py DESTINATION ${DATADIR}/nautilus-python/extensions)

View File

@ -0,0 +1,4 @@
#!/bin/sh
sed 's/oC_/@APPLICATION_EXECUTABLE@_/' ownCloud.py
mv ownCloud.py @APPLICATION_EXECUTABLE@.py