[oe] [PATCH 14/14] xfce-polkit: fix Name/Comment fields in desktop file

Andreas Müller schnitzeltony at gmail.com
Wed Jan 17 08:34:21 UTC 2018


Without this xfce-polkit is displayed ad 'null' in autosatart dialog of
xfce4-settings.

Signed-off-by: Andreas Müller <schnitzeltony at gmail.com>
---
 .../files/0001-fix-Name-Comment-fields.patch       | 34 ++++++++++++++++++++++
 .../recipes-apps/xfce-polkit/xfce-polkit_0.2.bb    |  5 +++-
 2 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 meta-xfce/recipes-apps/xfce-polkit/files/0001-fix-Name-Comment-fields.patch

diff --git a/meta-xfce/recipes-apps/xfce-polkit/files/0001-fix-Name-Comment-fields.patch b/meta-xfce/recipes-apps/xfce-polkit/files/0001-fix-Name-Comment-fields.patch
new file mode 100644
index 000000000..e872249d5
--- /dev/null
+++ b/meta-xfce/recipes-apps/xfce-polkit/files/0001-fix-Name-Comment-fields.patch
@@ -0,0 +1,34 @@
+From fb1f83c04dd5262897b09e60fa8b39090d0d4619 Mon Sep 17 00:00:00 2001
+From: Rex Dieter <rdieter at math.unl.edu>
+Date: Thu, 12 Nov 2015 13:53:03 -0600
+Subject: [PATCH] fix Name/Comment fields
+
+Validate as a valid .desktop file per
+http://standards.freedesktop.org/desktop-entry-spec/latest/
+
+See also issue #2
+
+Upstream-Status: Applied [1]
+
+[1] https://github.com/ncopa/xfce-polkit/commit/fb1f83c04dd5262897b09e60fa8b39090d0d4619
+---
+ xfce-polkit.desktop.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/xfce-polkit.desktop.in b/xfce-polkit.desktop.in
+index 8575896..dd9f09c 100644
+--- a/xfce-polkit.desktop.in
++++ b/xfce-polkit.desktop.in
+@@ -1,7 +1,7 @@
+ [Desktop Entry]
+ Type=Application
+-_Name=XFCE PolKit
+-_Comment=Policykit Authentication Agent
++Name=XFCE PolKit
++Comment=Policykit Authentication Agent
+ Exec=@xfce_polkit_libexecdir@/xfce-polkit
+ Icon=gtk-dialog-authentication
+ NotShowIn=GNOME;KDE;
+-- 
+2.14.3
+
diff --git a/meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb b/meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb
index 1fb4a5be2..54bf7c752 100644
--- a/meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb
+++ b/meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb
@@ -6,6 +6,9 @@ DEPENDS = "libxfce4ui polkit"
 
 inherit xfce-app
 
-SRC_URI = "git://github.com/ncopa/${BPN}.git"
+SRC_URI = " \
+    git://github.com/ncopa/${BPN}.git \
+    file://0001-fix-Name-Comment-fields.patch \
+"
 SRCREV = "6ad1ee833c9e22e4dd72a8f7d54562d046965283"
 S = "${WORKDIR}/git"
-- 
2.14.3




More information about the Openembedded-devel mailing list