* [PATCH 0/1] Xfce Terminal Support v2
@ 2011-10-31 21:53 Joshua Lock
2011-10-31 21:53 ` [PATCH 1/1] lib/oe/terminal: add support for XFCE's terminal emulator Joshua Lock
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Lock @ 2011-10-31 21:53 UTC (permalink / raw)
To: openembedded-core
Turns out v1 of this was pretty useless, thanks to Chris for reviewing and
spotting most of my bloopers. I keep telling myself not to submit patches
before the weekend, but never listen.
I've not had chance to test this on Ubuntu/Debian but am reasonably confident
it'll work there now.
Thanks,
Joshua
The following changes since commit ff13e06892f102d915855cde50896349b07b3717:
clutter-gtk: add LIC_FILES_CHKSUM to include file (2011-10-31 10:46:59 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib josh/work
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=josh/work
Joshua Lock (1):
lib/oe/terminal: add support for XFCE's terminal emulator
meta/lib/oe/terminal.py | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
--
1.7.7
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] lib/oe/terminal: add support for XFCE's terminal emulator
2011-10-31 21:53 [PATCH 0/1] Xfce Terminal Support v2 Joshua Lock
@ 2011-10-31 21:53 ` Joshua Lock
2011-11-01 11:18 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Lock @ 2011-10-31 21:53 UTC (permalink / raw)
To: openembedded-core
That's Terminal on Fedora and xfce4-terminal on Ubuntu/Debian... This
could get interesting!
Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
meta/lib/oe/terminal.py | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 1455e8e..43639d5 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -57,6 +57,20 @@ class Gnome(XTerminal):
command = 'gnome-terminal --disable-factory -t "{title}" -x {command}'
priority = 2
+class Xfce(XTerminal):
+ command = 'Terminal -T "{title}" -e "{command}"'
+ priority = 2
+
+ def __init__(self, command, title=None, env=None):
+ # Upstream binary name is Terminal but Debian/Ubuntu use
+ # xfce4-terminal to avoid possible(?) conflicts
+ distro = distro_name()
+ if distro == 'ubuntu' or distro == 'debian':
+ cmd = 'xfce4-terminal -T "{title}" -e "{command}"'
+ else:
+ cmd = command
+ XTerminal.__init__(self, cmd, title, env)
+
class Konsole(XTerminal):
command = 'konsole -T "{title}" -e {command}'
priority = 2
@@ -131,3 +145,12 @@ def check_konsole_version(konsole):
if ver.startswith('Konsole'):
vernum = ver.split(' ')[-1]
return vernum
+
+def distro_name():
+ try:
+ p = Popen(['lsb_release', '-i'])
+ out, err = p.communicate()
+ distro = out.split(':')[1].strip().lower()
+ except:
+ distro = "unknown"
+ return distro
--
1.7.7
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] lib/oe/terminal: add support for XFCE's terminal emulator
2011-10-31 21:53 ` [PATCH 1/1] lib/oe/terminal: add support for XFCE's terminal emulator Joshua Lock
@ 2011-11-01 11:18 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-11-01 11:18 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2011-10-31 at 14:53 -0700, Joshua Lock wrote:
> That's Terminal on Fedora and xfce4-terminal on Ubuntu/Debian... This
> could get interesting!
>
> Signed-off-by: Joshua Lock <josh@linux.intel.com>
> ---
> meta/lib/oe/terminal.py | 23 +++++++++++++++++++++++
> 1 files changed, 23 insertions(+), 0 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-01 11:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31 21:53 [PATCH 0/1] Xfce Terminal Support v2 Joshua Lock
2011-10-31 21:53 ` [PATCH 1/1] lib/oe/terminal: add support for XFCE's terminal emulator Joshua Lock
2011-11-01 11:18 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox