diff --git a/desktop-file-utils-add-Pantheon.patch b/desktop-file-utils-add-Pantheon.patch new file mode 100644 index 0000000..c9db831 --- /dev/null +++ b/desktop-file-utils-add-Pantheon.patch @@ -0,0 +1,14 @@ +diff -Nura desktop-file-utils-0.23/src/validate.c desktop-file-utils-0.23_new/src/validate.c +--- desktop-file-utils-0.23/src/validate.c 2016-06-19 01:00:22.000000000 +0800 ++++ desktop-file-utils-0.23_new/src/validate.c 2019-06-19 17:58:15.104352109 +0800 +@@ -366,8 +366,9 @@ + { DESKTOP_STRING_TYPE, "Exec", TRUE, FALSE, FALSE, handle_exec_key } + }; + ++/* This should be the same list as in xdg-specs/menu/menu-spec.xml */ + static const char *show_in_registered[] = { +- "GNOME", "KDE", "LXDE", "LXQt", "MATE", "Razor", "ROX", "TDE", "Unity", "XFCE", "Cinnamon", "EDE", "Old" ++ "GNOME", "KDE", "LXDE", "LXQt", "MATE", "Razor", "ROX", "TDE", "Unity", "XFCE", "EDE", "Cinnamon", "Pantheon", "Old" + }; + + static struct { diff --git a/desktop-file-utils.changes b/desktop-file-utils.changes index f8ccc78..b1ca820 100644 --- a/desktop-file-utils.changes +++ b/desktop-file-utils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 19 10:05:28 UTC 2019 - Cliff Zhao + +- Add desktop-file-utils-add-Pantheon.patch: Backporting upstream + patch to Add Pantheon to desktop env list(fdo#105785 bnc#1094774). + ------------------------------------------------------------------- Wed May 8 09:36:13 UTC 2019 - Dominique Leuenberger diff --git a/desktop-file-utils.spec b/desktop-file-utils.spec index 6d6963f..7956501 100644 --- a/desktop-file-utils.spec +++ b/desktop-file-utils.spec @@ -28,6 +28,8 @@ Source1: suse-update-mime-defaults Source2: macros.desktop-file-utils # PATCH-FEATURE-OPENSUSE desktop-file-utils-suse-keys.patch vuntz@opensuse.org -- Handle SUSE-specific keys in validator. This is not strictly necessary, since they are prefixed with X-, but we can verify that the value has the right type. Patch0: desktop-file-utils-suse-keys.patch +# PATCH-FIX-UPSTREAM desktop-file-utils-add-Pantheon.patch fdo#105785 bnc#1094774 qzhao@suse.com -- Backporting upstream patch to Add Pantheon to desktop env list. +Patch1: desktop-file-utils-add-Pantheon.patch BuildRequires: glib2-devel BuildRequires: pkgconfig BuildRequires: xz @@ -46,6 +48,7 @@ http://freedesktop.org/wiki/Specifications/desktop-entry-spec %prep %setup -q %patch0 +%patch1 -p1 %build %configure \