diff --git a/xdg-terminal-fix-gsettings.patch b/xdg-terminal-fix-gsettings.patch new file mode 100644 index 0000000..08c0295 --- /dev/null +++ b/xdg-terminal-fix-gsettings.patch @@ -0,0 +1,15 @@ +Index: xdg-utils-20151005/scripts/xdg-terminal.in +=================================================================== +--- xdg-utils-20151005.orig/scripts/xdg-terminal.in ++++ xdg-utils-20151005/scripts/xdg-terminal.in +@@ -86,8 +86,8 @@ terminal_gsettings() + { + term_schema="$1"; shift + +- term_exec=`gsettings get ${term_schema} exec` +- term_exec_arg=`gsettings get ${term_schema} exec-arg` ++ term_exec=`gsettings get ${term_schema} exec | sed -r "s/^'(.*)'$/\1/"` ++ term_exec_arg=`gsettings get ${term_schema} exec-arg | sed -r "s/^'(.*)'$/\1/"` + + terminal_exec=`which $term_exec 2>/dev/null` + diff --git a/xdg-utils.changes b/xdg-utils.changes index 8ab4dd9..51aaf4c 100644 --- a/xdg-utils.changes +++ b/xdg-utils.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Dec 3 17:08:12 UTC 2015 - ronisbr@gmail.com + +- Add patch `xdg-terminal-fix-gsettings.patch` to fix upstream + bnc#93231 + + xdg-terminal is not working when it needs gsettings to obtain + the default terminal. Thus, xdg-terminal cannot be used in + MATE, Cinnamon or GNOME. This issue was already reported in: + https://bugs.freedesktop.org/show_bug.cgi?id=93231 + Thus, this patch provides a temporary workaround until upstream + fixes it. + ------------------------------------------------------------------- Tue Nov 3 10:55:15 UTC 2015 - jslaby@suse.com diff --git a/xdg-utils.spec b/xdg-utils.spec index ce02564..5890e7a 100644 --- a/xdg-utils.spec +++ b/xdg-utils.spec @@ -33,7 +33,11 @@ Url: http://portland.freedesktop.org/ # http://portland.freedesktop.org/download/xdg-utils-%%{version}.tgz Source0: xdg-utils-%{version}.tar.xz Patch0: install-some-more-scripts.diff -Patch3: fix-enlightenment-support.patch +Patch3: fix-enlightenment-support.patch +# PATCH-FIX-UPSTREAM xdg-terminal-fix-gsettings.patch bnc#93231 +# Fix a bug when xdg-terminal needs gsettings to get the default terminal. +# See: https://bugs.freedesktop.org/show_bug.cgi?id=93231 +Patch4: xdg-terminal-fix-gsettings.patch Requires: perl Requires: perl-Net-DBus Requires: perl-X11-Protocol @@ -62,6 +66,7 @@ They are intended to provide a set of defacto standards. This means that: %setup -q -n %name-%{version} %patch0 -p1 %patch3 -p1 +%patch4 -p1 %build %configure