[Portland-bugs] [Bug 44358] New: xdg-terminal doesn't handle common non-command TERM values like TERM=linux (Lubuntu)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Dec 31 17:34:13 PST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=44358
Bug #: 44358
Summary: xdg-terminal doesn't handle common non-command TERM
values like TERM=linux (Lubuntu)
Classification: Unclassified
Product: Portland
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: xdg-utils
AssignedTo: portland-bugs at lists.freedesktop.org
ReportedBy: freedesktop.zen.ssokolow at spamgourmet.com
Created attachment 55012
--> https://bugs.freedesktop.org/attachment.cgi?id=55012
Patch to fix the problem
Under some common circumstances, (eg. Lubuntu 11.10 with the "Lubuntu" session
and gmrun), the current git HEAD (b961235b197647d6649ef3d48d7cc2cecafe3d47) for
xdg-terminal sees TERM=linux and DE=generic and doesn't attempt to fall back to
xterm.
This could also conceivably happen with TERM=vt100 but a valid DISPLAY in some
types of more esoteric network-transparent X11 setups.
I've attached a patch which extends the basic check for an empty TERM value to
also test for "linux" and "vt100".
However, in the long term, the most proper solution would be to test whether
the value of TERM is a valid command and use a fallback if that test fails.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Portland-bugs
mailing list