[Portland-bugs] [Bug 93231] xdg-terminal does not work when gsettings is used to get the default terminal

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 3 08:51:26 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=93231

--- Comment #2 from Ronan Arraes Jardim Chagas <ronisbr at gmail.com> ---
The following patch completely fixes the issue:

$cat xdg-terminal-fix-gsettings.patch 
--- a    2015-12-03 14:46:29.679354374 -0200
+++ b    2015-12-03 14:49:08.144583541 -0200
@@ -514,8 +514,8 @@
 {
     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`

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20151203/3ec3cc7a/attachment.html>


More information about the Portland-bugs mailing list