Patchwork [2/2] sato-icon-theme: add more compatibility symlinks

login
register
mail settings
Submitter Ross Burton
Date Sept. 27, 2013, 4:41 p.m.
Message ID <1380300077-23074-2-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/59089/
State Accepted
Commit 7509c0f647f65c42ff256d2bfb9e1ffb2f3d816e
Headers show

Comments

Ross Burton - Sept. 27, 2013, 4:41 p.m.
libfm uses "preferences-desktop", so link it to the close-enough
"preferences-sytem".

x11vnc uses "computer", link it to "terminal".

pcmanfm uses "system-file-manager", link it to "file-manager".

[ YOCTO #4062 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb |    6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb b/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb
index cb3b68c..cf23aeb 100644
--- a/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb
+++ b/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb
@@ -23,6 +23,12 @@  FILES_${PN} += "${datadir}"
 
 EXTRA_OECONF += "--with-iconmap=${@d.getVar('STAGING_LIBEXECDIR_NATIVE', True).replace('sato-icon-theme', 'icon-naming-utils')}/icon-name-mapping"
 
+do_install_append() {
+	find ${D}${datadir}/icons/Sato/ -maxdepth 1 -type d -exec ln -s preferences-system.png {}/apps/preferences-desktop.png \;
+	find ${D}${datadir}/icons/Sato/ -maxdepth 1 -type d -exec ln -s file-manager.png {}/apps/system-file-manager.png \;
+	find ${D}${datadir}/icons/Sato/ -maxdepth 1 -type d -exec ln -s ../apps/terminal.png {}/places/computer.png \;
+}
+
 # Explictly setting "Sato" as the default icon theme to avoid flickering from
 # the desktop and settings daemon racing.  This shouldn't be done here but in the sato image
 pkg_postinst_${PN} () {