Bug#773915: Glib-based apps don't look for mate-terminal and fail if xterm is not installed

Raphaël Halimi raphael.halimi at gmail.com
Thu Dec 25 15:39:12 UTC 2014


Package: libglib2.0-0
Version: 2.42.1-1
Severity: normal
Tags: patch, upstream

Hi,

On MATE desktop, menu entries that have a "Terminal=true" line in their
desktop file are opened in xterm instead of mate-terminal, and even fail
if xterm isn't installed. This rudimentary patch fixes this by adding
support for mate-terminal.wrapper as a substitute for xterm-based
terminals. Natively supporting mate-terminal (since it has the same
syntax than gnome-terminal, namely "-x" instead of "-e") should be
possible but it would require a more complicated patch, and I'm no C
coder, so I prefer doing something simple but unoptimized that works,
instead of trying to optimize something at the risk of writing
buggy/dirty/ugly code.

Additionally, when writing this patch, I found something that looked
weird to me but again, since I'm no C coder, I can't be sure and
preferred not to touch: when checking for terminal programs in the path,
xterm is checked, and if not found, the code falls back to... xterm
(please look a couple of lines before/after the patched ones, and decide
if this needs to be changed and/or forwarded upstream).

Regards,

-- 
Raphaël Halimi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: support-mate-terminal.patch
Type: text/x-patch
Size: 618 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20141225/96fb90cf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20141225/96fb90cf/attachment.sig>


More information about the pkg-gnome-maintainers mailing list