Bug 44358

Summary: xdg-terminal doesn't handle common non-command TERM values like TERM=linux (Lubuntu)
Product: Portland Reporter: Stephan Sokolow <freedesktop.zen.ssokolow>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to fix the problem

Description Stephan Sokolow 2011-12-31 17:34:13 UTC
Created attachment 55012 [details] [review]
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.

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.