Package: sensible-utils
Version: 0.0.26
Severity: normal
File: /usr/bin/sensible-terminal

sensible-terminal has this code:

    __sensible_candidate="sensible-terminal-$(echo "$XDG_CURRENT_DESKTOP" | tr 
'[:upper:]' '[:lower:]')"

This looks like it's expecting to find a program with a name like 
sensible-terminal-gnome in the PATH. That's achievable for the "major" 
desktop environments like GNOME and KDE, but XDG_CURRENT_DESKTOP is 
allowed to be a colon-separated list of desktop environments.

This is intended as a way to say that desktop environment A is "like" 
desktop environment B, so that A can have its own environment-specific 
overrides, but if it doesn't express a preference then it gets the same 
behaviour as B.

For example, Ubuntu's customized GNOME session sets 
XDG_CURRENT_DESKTOP=ubuntu:GNOME, which means that it uses settings from 
e.g. ubuntu-mimeapps.list if it exists, falling back to 
gnome-mimeapps.list otherwise. GNOME Classic behaves similarly.

For the behaviour that sensible-terminal seems to be aiming for, with 
XDG_CURRENT_DESKTOP=ubuntu:GNOME I would expect it to try to run 
sensible-terminal-ubuntu first, then sensible-terminal-gnome, and 
finally x-terminal-emulator.

    smcv

Reply via email to