recipes: don't use Icon= with extension in .desktop files
PATCH 1/1 recipes: don't use Icon= with extension in .desktop files
* new efreet with icon cache cannot find right icon in theme when it's defined with extension like ./neon.desktop:Icon=neon.png
* fixed for .desktop files found installed on my device
--- recipes/dillo/dillo2_2.1.1.bb | 2 +- recipes/dillo/files/dillo.desktop | 2 +- recipes/gpe-scap/gpe-scap_1.4.bb | 6 +++++- recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb | 6 +++++- .../numptyphysics/numptyphysics.desktop | 2 +- recipes/numptyphysics/numptyphysics_svn.bb | 2 +- recipes/openmoko-3rdparty/calc_0.0.4.bb | 6 +++++- recipes/openmoko-3rdparty/calc_git.bb | 4 ++++ recipes/openmoko-3rdparty/om-neon_svn.bb | 3 ++- recipes/openmoko-3rdparty/podboy_svn.bb | 3 ++- recipes/pyphonelog/pyphonelog_git.bb | 6 +++++- 11 files changed, 32 insertions(+), 10 deletions(-)
recipes/dillo/dillo2_2.1.1.bb +1 -1
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "fltk2-images" SRC_URI="http://www.dillo.org/download/dillo-${PV}.tar.bz2 \ file://dillo.desktop \ file://dillo.png" -PR = "r6" +PR = "r7" S = "${WORKDIR}/dillo-${PV}/"
recipes/dillo/files/dillo.desktop +1 -1
@@ -4,6 +4,6 @@ Comment=Dillo Exec=dillo Terminal=0 Type=Application -Icon=dillo.png +Icon=dillo Categories=Application;PIM;GPE StartupNotify=True
recipes/gpe-scap/gpe-scap_1.4.bb +5 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "A GPE application that allows you to take screenshots." LICENSE = "GPL" PRIORITY = "optional" SECTION = "gpe" -PR = "r1" +PR = "r2" RREPLACES_${PN} = "gpe-screenshot"
@@ -14,3 +14,7 @@ inherit gpe autotools SRC_URI[md5sum] = "eaf545561b0ad981c9d01833f30fcf95" SRC_URI[sha256sum] = "762778421fae7c62d5ec6a9d27986166c0dbbe2ff51fc10bb9b8baff5c367534" + +do_configure_prepend() { + sed -i 's#gpe-scap.png#gpe-scap#g' ${S}/gpe-scap.desktop.in +}
recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb +5 -1
@@ -4,7 +4,7 @@ LICENSE = "GPL" DESCRIPTION = "A GPE notebook to sketch your notes" export CVSBUILD = "no" -PR = "r2" +PR = "r3" inherit gpe pkgconfig
@@ -15,6 +15,10 @@ SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.gz" FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications" FILES_${PN} += " ${datadir}/gpe/pixmaps" +do_configure_prepend() { + sed -i 's#gpe-sketchbook.png#gpe-sketchbook#g' ${S}/gpe-sketchbook.desktop.in +} + do_compile () { oe_runmake PREFIX=${prefix} oe_runmake all-desktop PREFIX=${prefix}
recipes/numptyphysics/numptyphysics/numptyphysics.desktop +1 -1
@@ -3,7 +3,7 @@ Name=numptyphysics Comment=Physics Game Note=Simulate Objects Exec=numptyphysics -Icon=star.png +Icon=star Type=Application Categories=Games
recipes/numptyphysics/numptyphysics_svn.bb +1 -1
@@ -7,7 +7,7 @@ HOMEPAGE = "http://numptyphysics.garage.maemo.org/" SECTION = "x11/games" SRCREV = "109" PV = "0.2+svnr${SRCPV}" -PR = "r3" +PR = "r4" inherit autotools
recipes/openmoko-3rdparty/calc_0.0.4.bb +5 -1
@@ -4,12 +4,16 @@ AUTHOR = "Sebastian Spaeth <[email protected]>" LICENSE = "MIT" RDEPENDS_${PN} = "python-elementary python python-edbus" SECTION = "x11/application" -PR = "r1" +PR = "r2" SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master;tag=${PV}" S = "${WORKDIR}/git" +do_configure_prepend() { + sed -i 's#calculator.png#calculator#g' ${S}/data/elementary-calculator.desktop +} + do_install(){ install -d ${D}${datadir}/applications install -m 0644 ${S}/data/elementary-calculator.desktop ${D}${datadir}/applications/
recipes/openmoko-3rdparty/calc_git.bb +4 -0
@@ -14,6 +14,10 @@ DEFAULT_PREFERENCE = "-1" SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master" S = "${WORKDIR}/git" +do_configure_prepend() { + sed -i 's#calculator.png#calculator#g' ${S}/data/elementary-calculator.desktop +} + do_install(){ install -d ${D}${datadir}/applications install -m 0644 ${S}/data/elementary-calculator.desktop ${D}${datadir}/applications/
recipes/openmoko-3rdparty/om-neon_svn.bb +2 -1
@@ -8,7 +8,7 @@ DEPENDS = "edje-native python-native" SRCREV = "68" PV = "1.0.0+svnr${SRCPV}" -PR = "r4" +PR = "r5" S = "${WORKDIR}/trunk"
@@ -27,4 +27,5 @@ do_compile_prepend() { sed -i "s/\/opt\/bin\/edje_cc -v/${@"${STAGING_BINDIR_NATIVE}".replace('/', '\/')}\/edje_cc/g" ${S}/build_edje.py sed -i "s/#THEMES_DIR = '\/usr\/share\/neon\/themes'/THEMES_DIR = '\/usr\/share\/neon\/themes'/g" ${S}/neon/neon.py sed -i "s/THEMES_DIR = '..\/data\/themes'/#THEMES_DIR = '..\/data\/themes'/g" ${S}/neon/neon.py + sed -i 's#neon.png#neon#g' ${S}/data/neon.desktop }
recipes/openmoko-3rdparty/podboy_svn.bb +2 -1
@@ -7,7 +7,7 @@ PRIORITY = "optional" SRCREV = "210" PV = "1.7.2+svnr${SRCPV}" -PR = "r3" +PR = "r4" PACKAGE_ARCH = "all"
@@ -23,4 +23,5 @@ RDEPENDS_${PN} += "python-compression python-elementary python-gst python-html p do_compile_prepend() { ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/data ${S}/data/podboy.edc + sed -i 's#podboy.png#podboy#g' ${S}/data/podboy.desktop }
recipes/pyphonelog/pyphonelog_git.bb +5 -1
@@ -11,8 +11,12 @@ S = "${WORKDIR}/git" SRCREV = "d22159060470d2f429d4e8b9ba1dc3096aa5d099" PE = "1" PV = "0.17.0+gitr${SRCPV}" -PR = "r1" +PR = "r2" SRC_URI = "git://git.shr-project.org/repo/pyphonelog.git;protocol=http" FILES_${PN} += "${datadir}/applications/phonelog.desktop \ ${datadir}/phonelog/ \ ${datadir}/pixmaps/phonelog.png" + +do_configure_prepend() { + sed -i 's#phonelog.png#phonelog#g' ${S}/data/applications/phonelog.desktop +}
Signature · 1 line
1.7.4
Probably not really needed after
http://trac.enlightenment.org/e/changeset/56699
Quoted 211 lines · Martin Jansa
* new efreet with icon cache cannot find right icon in theme when it's defined with extension like ./neon.desktop:Icon=neon.png
* fixed for .desktop files found installed on my deviceSigned-off-by Martin Jansa <[email protected]>---
recipes/dillo/dillo2_2.1.1.bb | 2 +- recipes/dillo/files/dillo.desktop | 2 +- recipes/gpe-scap/gpe-scap_1.4.bb | 6 +++++- recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb | 6 +++++- .../numptyphysics/numptyphysics.desktop | 2 +- recipes/numptyphysics/numptyphysics_svn.bb | 2 +- recipes/openmoko-3rdparty/calc_0.0.4.bb | 6 +++++- recipes/openmoko-3rdparty/calc_git.bb | 4 ++++ recipes/openmoko-3rdparty/om-neon_svn.bb | 3 ++- recipes/openmoko-3rdparty/podboy_svn.bb | 3 ++- recipes/pyphonelog/pyphonelog_git.bb | 6 +++++-11 files changed, 32 insertions(+), 10 deletions(-)recipes/dillo/dillo2_2.1.1.bb +0
-0@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "fltk2-images" SRC_URI="http://www.dillo.org/download/dillo-${PV}.tar.bz2 \ file://dillo.desktop \file://dillo.png"
recipes/dillo/dillo2_2.1.1.bb +1
-1-PR = "r6" +PR = "r7"S = "${WORKDIR}/dillo-${PV}/"
recipes/dillo/files/dillo.desktop +0
-0@@ -4,6 +4,6 @@ Comment=DilloExec=dillo
Terminal=0
Type=Applicationrecipes/dillo/files/dillo.desktop +1
-1-Icon=dillo.png +Icon=dilloCategories=Application;PIM;GPE
StartupNotify=Truerecipes/gpe-scap/gpe-scap_1.4.bb +0
-0@@ -2,7 +2,7 @@ DESCRIPTION = "A GPE application that allows you to take screenshots."LICENSE = "GPL"
PRIORITY = "optional"
SECTION = "gpe"recipes/gpe-scap/gpe-scap_1.4.bb +1
-1-PR = "r1" +PR = "r2"RREPLACES_${PN} = "gpe-screenshot"
recipes/gpe-scap/gpe-scap_1.4.bb +0
-0@@ -14,3 +14,7 @@ inherit gpe autotoolsSRC_URI[md5sum] = "
eaf545561b0ad981c9d01833f30fcf95"
SRC_URI[sha256sum] = "762778421fae7c62d5ec6a9d27986166c0dbbe2ff51fc10bb9b8baff5c367534"recipes/gpe-scap/gpe-scap_1.4.bb +4
-0+ +do_configure_prepend() { + sed -i 's#gpe-scap.png#gpe-scap#g' ${S}/gpe-scap.desktop.in +}recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb +0
-0@@ -4,7 +4,7 @@ LICENSE = "GPL"DESCRIPTION = "A GPE notebook to sketch your notes" export CVSBUILD = "no"
recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb +1
-1-PR = "r2" +PR = "r3"inherit gpe pkgconfig
recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb +0
-0@@ -15,6 +15,10 @@ SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.gz"FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications" FILES_${PN} += " ${datadir}/gpe/pixmaps"
recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb +4
-0+do_configure_prepend() { + sed -i 's#gpe-sketchbook.png#gpe-sketchbook#g' ${S}/gpe-sketchbook.desktop.in +} +do_compile () {
oe_runmakePREFIX=${prefix}
oe_runmakeall-desktop PREFIX=${prefix}recipes/numptyphysics/numptyphysics/numptyphysics.desktop +0
-0@@ -3,7 +3,7 @@ Name=numptyphysicsComment=Physics Game
Note=Simulate Objects
Exec=numptyphysicsrecipes/numptyphysics/numptyphysics/numptyphysics.desktop +1
-1-Icon=star.png +Icon=starType=Application
Categories=Gamesrecipes/numptyphysics/numptyphysics_svn.bb +0
-0@@ -7,7 +7,7 @@ HOMEPAGE = "http://numptyphysics.garage.maemo.org/"SECTION = "x11/games"
SRCREV = "109"
PV = "0.2+svnr${SRCPV}"recipes/numptyphysics/numptyphysics_svn.bb +1
-1-PR = "r3" +PR = "r4"inherit autotools
recipes/openmoko-3rdparty/calc_0.0.4.bb +0
-0@@ -4,12 +4,16 @@ AUTHOR = "Sebastian Spaeth <[email protected]>"LICENSE = "MIT"
RDEPENDS_${PN} = "python-elementary python python-edbus" SECTION = "x11/application"recipes/openmoko-3rdparty/calc_0.0.4.bb +1
-1-PR = "r1" +PR = "r2"SRC_URI = "
git://github.com/spaetz/calc.git;protocol=http;branch=master;tag=${PV}" S = "${WORKDIR}/git"recipes/openmoko-3rdparty/calc_0.0.4.bb +4
-0+do_configure_prepend() { + sed -i 's#calculator.png#calculator#g' ${S}/data/elementary-calculator.desktop +} +do_install(){
install -d ${D}${datadir}/applications
install -m 0644 ${S}/data/elementary-calculator.desktop ${D}${datadir}/applications/recipes/openmoko-3rdparty/calc_git.bb +0
-0@@ -14,6 +14,10 @@ DEFAULT_PREFERENCE = "-1"SRC_URI = "
git://github.com/spaetz/calc.git;protocol=http;branch=master" S = "${WORKDIR}/git"recipes/openmoko-3rdparty/calc_git.bb +4
-0+do_configure_prepend() { + sed -i 's#calculator.png#calculator#g' ${S}/data/elementary-calculator.desktop +} +do_install(){
install -d ${D}${datadir}/applications
install -m 0644 ${S}/data/elementary-calculator.desktop ${D}${datadir}/applications/recipes/openmoko-3rdparty/om-neon_svn.bb +0
-0@@ -8,7 +8,7 @@ DEPENDS = "edje-native python-native"SRCREV = "68"
PV = "1.0.0+svnr${SRCPV}"recipes/openmoko-3rdparty/om-neon_svn.bb +1
-1-PR = "r4" +PR = "r5"S = "${WORKDIR}/trunk"
recipes/openmoko-3rdparty/om-neon_svn.bb +0
-0@@ -27,4 +27,5 @@ do_compile_prepend() {sed -i "s/\/opt\/bin\/edje_cc -v/${@"${STAGING_BINDIR_NATIVE}".replace('/', '\/')}\/edje_cc/g"
${S}/build_edje.pysed -i "s/#THEMES_DIR = '\/usr\/share\/neon\/themes'/THEMES_DIR = '\/usr\/share\/neon\/themes'/g"${S}/neon/neon.pysed -i "s/THEMES_DIR = '..\/data\/themes'/#THEMES_DIR = '..\/data\/themes'/g"${S}/neon/neon.py
+ sed -i 's#neon.png#neon#g' ${S}/data/neon.desktop
}recipes/openmoko-3rdparty/podboy_svn.bb +0
-0@@ -7,7 +7,7 @@ PRIORITY = "optional"SRCREV = "210"
PV = "1.7.2+svnr${SRCPV}"recipes/openmoko-3rdparty/podboy_svn.bb +1
-1-PR = "r3" +PR = "r4"PACKAGE_ARCH = "all"
recipes/openmoko-3rdparty/podboy_svn.bb +0
-0@@ -23,4 +23,5 @@ RDEPENDS_${PN} += "python-compression python-elementary python-gst python-html p do_compile_prepend() {${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/data ${S}/data/podboy.edc
+ sed -i 's#podboy.png#podboy#g' ${S}/data/podboy.desktop }recipes/pyphonelog/pyphonelog_git.bb +0
-0@@ -11,8 +11,12 @@ S = "${WORKDIR}/git"SRCREV = "
d22159060470d2f429d4e8b9ba1dc3096aa5d099" PE = "1"
PV = "0.17.0+gitr${SRCPV}"recipes/pyphonelog/pyphonelog_git.bb +1
-1-PR = "r1" +PR = "r2"SRC_URI = "
git://git.shr-project.org/repo/pyphonelog.git;protocol=http" FILES_${PN} += "${datadir}/applications/phonelog.desktop \
${datadir}/phonelog/ \
${datadir}/pixmaps/phonelog.png"recipes/pyphonelog/pyphonelog_git.bb +4
-1+ +do_configure_prepend() { + sed -i 's#phonelog.png#phonelog#g' ${S}/data/applications/phonelog.desktop +} --1.7.4