SHA256
1
0
forked from pool/xdg-utils
xdg-utils/xdg-terminal-fix-gsettings.patch
Jiri Slaby 128b302f1a Accepting request 347378 from home:Ronis_BR
Add patch `xdg-terminal-fix-gsettings.patch` to fix upstream bnc#93231.

xdg-terminal is not working when it needs settings 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.

OBS-URL: https://build.opensuse.org/request/show/347378
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/xdg-utils?expand=0&rev=46
2015-12-06 10:38:46 +00:00

16 lines
616 B
Diff

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`