Summary: | xdg-terminal does not work when gsettings is used to get the default terminal | ||
---|---|---|---|
Product: | Portland | Reporter: | Ronan Arraes Jardim Chagas <ronisbr> |
Component: | xdg-utils | Assignee: | Per Olofsson <pelle> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Fixes -x argument, which is the default for {gnome,mate}-terminal |
Description
Ronan Arraes Jardim Chagas
2015-12-03 16:35:29 UTC
Notice that I tested under MATE, but this bug should affect all DE in which xdg-terminal uses gsettings to get the default terminal, like GNOME and Cinnamon. 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` A wrong one. @Jiri Slaby Sorry? I did not understand. Created attachment 121208 [details] [review] Fixes -x argument, which is the default for {gnome,mate}-terminal Also related to brokenness of xdg-terminal on GSettings-based desktop environments. Please merge the two proposed patches (comments 2 and 5). The patches are already used by openSUSE, see: https://build.opensuse.org/package/show/openSUSE:Factory/xdg-utils -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/xdg-utils/issues/85. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.