[packages/xdg-utils] - add mate support in xdg-settings
glen
glen at pld-linux.org
Sat Dec 29 15:11:31 CET 2012
commit d00c89c373952fc89dc6179ad327785236a54782
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Dec 29 16:11:16 2012 +0200
- add mate support in xdg-settings
0001-xdg-settings-add-MATE-support.patch | 61 ++++++++++++++++++++++++++++++++
xdg-utils.spec | 4 ++-
2 files changed, 64 insertions(+), 1 deletion(-)
---
diff --git a/xdg-utils.spec b/xdg-utils.spec
index a9e2830..ebab1a6 100644
--- a/xdg-utils.spec
+++ b/xdg-utils.spec
@@ -1,5 +1,5 @@
%define subver rc1
-%define rel 2
+%define rel 3
Summary: Set of tools that assist applications with desktop integration
Summary(pl.UTF-8): Zestaw narzędzi ułatwiających integrację aplikacji ze środowiskami graficznymi
Name: xdg-utils
@@ -11,6 +11,7 @@ Group: X11/Applications
Source0: %{name}-v%{version}-%{subver}-71-g050333e.tar.gz
# Source0-md5: 7a83a4867afc6f5df896f0be0bace74a
Source1: get-source.sh
+Patch0: 0001-xdg-settings-add-MATE-support.patch
URL: http://portland.freedesktop.org/wiki/XdgUtils
BuildRequires: xmlto
Requires: coreutils
@@ -38,6 +39,7 @@ aplikacji w danym środowisku graficznym.
%prep
%setup -qc
mv xdg-utils-v%{version}-*/* .
+%patch0 -p1
%build
%configure
diff --git a/0001-xdg-settings-add-MATE-support.patch b/0001-xdg-settings-add-MATE-support.patch
new file mode 100644
index 0000000..e77a7c3
--- /dev/null
+++ b/0001-xdg-settings-add-MATE-support.patch
@@ -0,0 +1,61 @@
+From 0e0954c71d09bd09c3c2ffacb7386349c59cbeb8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen at delfi.ee>
+Date: Sat, 29 Dec 2012 16:06:20 +0200
+Subject: [PATCH] xdg-settings: add MATE support
+
+MATE support was incomplete in b961235b197647d6649ef3d48d7cc2cecafe3d47
+it did not add support for xdg-settings which Google Chrome/Chromium
+uses to detect and set default browser.
+
+MATE 1.5 uses same schema as gnome3, so shortcut to gnome3 methods
+
+testcases:
+$ xdg-settings get default-web-browser
+chromium-browser.desktop
+$ xdg-settings check
+default-web-browser chromium-browser.desktop
+yes
+---
+ scripts/xdg-settings.in | 19 ++++++++++++++++++-
+ 1 file changed, 18 insertions(+), 1 deletion(-)
+
+diff --git a/scripts/xdg-settings.in b/scripts/xdg-settings.in
+index eaed991..b1e43cb 100644
+--- a/scripts/xdg-settings.in
++++ b/scripts/xdg-settings.in
+@@ -243,6 +243,23 @@ set_browser_kde()
+ }
+
+ # }}} KDE
++# {{{ MATE
++get_browser_mate()
++{
++ get_browser_gnome3 "$@"
++}
++
++check_browser_mate()
++{
++ check_browser_gnome3 "$@"
++}
++
++set_browser_mate()
++{
++ set_browser_gnome3 "$@"
++}
++
++# }}} MATE
+ # {{{ GNOME
+
+ get_browser_gnome()
+@@ -738,7 +755,7 @@ fi
+ detectDE
+
+ case "$DE" in
+- kde|gnome*|xfce)
++ kde|gnome*|mate|xfce)
+ dispatch_specific "$@"
+ ;;
+
+--
+1.8.0.1
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xdg-utils.git/commitdiff/d00c89c373952fc89dc6179ad327785236a54782
More information about the pld-cvs-commit
mailing list