Skip to content

Commit

Permalink
fix branded nemo and caja shell integration (#5966)
Browse files Browse the repository at this point in the history
* Update createcajaplugin.sh

* first apply branding, then create copies. Better.
Fixes https://github.com/owncloud/ownbrander/issues/753

* fix https://github.com/owncloud/ownbrander/issues/752 too.
  • Loading branch information
jnweiger authored and ogoffart committed Aug 31, 2017
1 parent 40abe3f commit 8393615
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shell_integration/icons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if( UNIX AND NOT APPLE )
FOREACH( file ${files} )
# the GLOB returns a absolute path. Make it relative by replacing the current src dir by nothing
STRING(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/${size}/" "" shortFile ${file})
STRING(REPLACE "oC" ${APPLICATION_NAME} brandedName ${shortFile})
STRING(REPLACE "oC" ${APPLICATION_SHORTNAME} brandedName ${shortFile})
install(FILES ${file} DESTINATION ${ICON_DIR}/${size}/apps RENAME ${brandedName})
ENDFOREACH(file)
ENDFOREACH(size)
Expand Down
2 changes: 0 additions & 2 deletions shell_integration/nautilus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
if( UNIX AND NOT APPLE )

configure_file(syncstate.py syncstate.py COPYONLY)
configure_file(syncstate.py syncstate_nemo.py COPYONLY)
configure_file(syncstate.py syncstate_caja.py COPYONLY)

# Call the setupappname.sh script to set the custom app name.
set (cmd "${CMAKE_CURRENT_SOURCE_DIR}/setappname.sh")
Expand Down
1 change: 1 addition & 0 deletions shell_integration/nautilus/createcajaplugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
# this script creates a plugin for caja, just by replacing
# all occurences of Nautilus with Caja (case sensitive).

cp syncstate.py syncstate_caja.py
sed -i.org -e 's/Nautilus/Caja/g' syncstate_caja.py
sed -i.org -e 's/nautilus/caja/g' syncstate_caja.py
1 change: 1 addition & 0 deletions shell_integration/nautilus/createnemoplugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# this script creates a plugin for nemo, just be replacing
# all occurences of Nautilus with Nemo.

cp syncstate.py syncstate_nemo.py
sed -i.org -e 's/autilus/emo/g' syncstate_nemo.py

0 comments on commit 8393615

Please sign in to comment.