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:
parent
5d19426930
commit
4d33773cef
shell_integration
@ -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()
|
||||
|
@ -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)
|
||||
|
4
shell_integration/nautilus/fixbranding.sh.in
Normal file
4
shell_integration/nautilus/fixbranding.sh.in
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed 's/oC_/@APPLICATION_EXECUTABLE@_/' ownCloud.py
|
||||
mv ownCloud.py @APPLICATION_EXECUTABLE@.py
|
Loading…
Reference in New Issue
Block a user