That's Terminal on Fedora and xfce4-terminal on Ubuntu/Debian... This could get interesting!
Signed-off-by: Joshua Lock <j...@linux.intel.com> --- meta/lib/oe/terminal.py | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index 1455e8e..b90a1f2 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py @@ -57,6 +57,27 @@ class Gnome(XTerminal): command = 'gnome-terminal --disable-factory -t "{title}" -x {command}' priority = 2 +class Xfce(XTerminal): + def distro_name(): + import subprocess as sub + try: + p = sub.Popen(['lsb_release', '-i'], stdout=sub.PIPE, + stderr=sub.PIPE) + out, err = p.communicate() + distro = out.split(':').strip() + except: + distro = "unknown" + return distro + + # Upstream binary name is Terminal but Debian/Ubuntu use + # xfce4-terminal to avoid possible(?) conflicts + distro = distro_name() + if distro == 'Ubuntu' or distro == 'Debian': + command = 'xfce4-terminal -T "{title}" -e "{command}"' + else: + command = 'Terminal -T "{title}" -e "{command}"' + priority = 2 + class Konsole(XTerminal): command = 'konsole -T "{title}" -e {command}' priority = 2 -- 1.7.7 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core