Skip to content

Commit

Permalink
added patch for menu-cache to fix problem related to Community Codec …
Browse files Browse the repository at this point in the history
…Pack
  • Loading branch information
freamon committed Jul 31, 2013
1 parent ace6e85 commit c5c90a0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes-graphics/openboxgui/menu-cache_0.4.1.bb
Expand Up @@ -9,11 +9,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SECTION = "x11/libs"
DEPENDS = "glib-2.0 zlib"

SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/menu-cache-${PV}.tar.gz"
SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/menu-cache-${PV}.tar.gz \
file://menu-cache_codecpack.patch \
"

SRC_URI[md5sum] = "20fed982f5d8e6ec8a56a5b48894ecf0"
SRC_URI[sha256sum] = "4fa9408e353fedba5b7314cbf6b6cd06d873a1424e281aa050d88bb9c0a0191e"

PR = "r0"
PR = "r1"

inherit autotools pkgconfig
19 changes: 19 additions & 0 deletions recipes-graphics/openboxgui/menu-cache_codecpack.patch
@@ -0,0 +1,19 @@
diff -Naur a/menu-cache-gen/desktop-entries.c b/menu-cache-gen/desktop-entries.c
--- a/menu-cache-gen/desktop-entries.c 2013-07-31 06:26:05.871188801 +0100
+++ b/menu-cache-gen/desktop-entries.c 2013-07-31 06:25:29.764125135 +0100
@@ -311,7 +311,14 @@
g_error_free (err);
}
*/
- retval->comment = GET_LOCALE_STRING ("Comment");
+ /* Fix for Open Pandora's codec pack, which has newline char in Comment field.
+ * This pushes everything else (like icon and exec patch) down into the wrong slot.
+ * I could parse every comment for '\n' and nuke it, but it's not like anything
+ * is making active use of .desktop file comments, so I'm just going to replace it
+ * with the name
+ */
+ /* retval->comment = GET_LOCALE_STRING ("Comment"); */
+ retval->comment = GET_LOCALE_STRING ("Name");
retval->icon = GET_LOCALE_STRING ("Icon");
retval->flags = get_flags_from_key_file (retval, key_file, desktop_entry_group);
retval->categories = get_categories_from_key_file (retval, key_file, desktop_entry_group);

0 comments on commit c5c90a0

Please sign in to comment.