<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - xdg-terminal does not work in MATE"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93231">93231</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>xdg-terminal does not work in MATE
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>xdg-utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>portland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ronisbr@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Hi!
I'm trying to open the default terminal using xdg-terminal in MATE. However,
when I execute `xdg-terminal` I get the following output:
xdg-terminal: configured terminal program ''mate-terminal'' not found or not
executable
It turns out that, in MATE, `xdg-terminal` uses the following code to get the
default terminal:
gsettings get org.mate.applications-terminal exec
(see
<a href="http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-terminal.in#n85">http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-terminal.in#n85</a>)
However, this command in MATE returns:
gsettings get org.mate.applications-terminal exec
'mate-terminal'
Thus, xdg-terminal tries to execute `'mate-terminal'` instead of
`mate-terminal`, which is the cause of the bug.
This happens regardless the terminal that I choose to be the default:
xterm:
$ gsettings get org.mate.applications-terminal exec
'xterm'
konsole:
gsettings get org.mate.applications-terminal exec
'konsole'
Hence, I think that xdg-terminal just need to remove '' from the returned
string and execute it.
Additional information about my system:
$ cat /etc/os-release
NAME=openSUSE
VERSION="Tumbleweed"
VERSION_ID="20151128"
PRETTY_NAME="openSUSE Tumbleweed (20151128) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:20151128"
BUG_REPORT_URL="<a href="https://bugs.opensuse.org">https://bugs.opensuse.org</a>"
HOME_URL="<a href="https://opensuse.org/">https://opensuse.org/</a>"
ID_LIKE="suse"
$ xdg-terminal --version
xdg-terminal 1.1.0 rc3</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>