diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-04-10 17:57:15 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-11 17:58:51 +0100 |
commit | 9789ed626bc69f348b55cfa5f1a79abbdc994204 (patch) | |
tree | 68de5a3abcc87a1bbf0f9adb1e251258bc1d7b1c /bitbake/lib/bb/ui/crumbs/hig.py | |
parent | 4be09eec6a5a25da089d8ad4fb68d2fda8149912 (diff) | |
download | poky-9789ed626bc69f348b55cfa5f1a79abbdc994204.tar.gz |
hig/builder: use the new which_terminal() function
Also adjusted the cmdline ordering to work correctly
with both xterm and vte.
(Bitbake rev: 4219e2ea033232d95117211947b751bdb5efafd4)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hig.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index 016fb59acb..5cc8a5931a 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -30,6 +30,7 @@ import shlex | |||
30 | from bb.ui.crumbs.hobcolor import HobColors | 30 | from bb.ui.crumbs.hobcolor import HobColors |
31 | from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton, HobIconChecker | 31 | from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton, HobIconChecker |
32 | from bb.ui.crumbs.progressbar import HobProgressBar | 32 | from bb.ui.crumbs.progressbar import HobProgressBar |
33 | import bb.ui.crumbs.utils | ||
33 | 34 | ||
34 | """ | 35 | """ |
35 | The following are convenience classes for implementing GNOME HIG compliant | 36 | The following are convenience classes for implementing GNOME HIG compliant |
@@ -739,9 +740,10 @@ class DeployImageDialog (CrumbsDialog): | |||
739 | if response_id == gtk.RESPONSE_YES: | 740 | if response_id == gtk.RESPONSE_YES: |
740 | combo_item = self.usb_combo.get_active_text() | 741 | combo_item = self.usb_combo.get_active_text() |
741 | if combo_item and combo_item != self.__dummy_usb__: | 742 | if combo_item and combo_item != self.__dummy_usb__: |
742 | cmdline = "/usr/bin/xterm -e " | 743 | cmdline = bb.ui.crumbs.utils.which_terminal() |
743 | cmdline += "\"sudo dd if=" + self.image_path + " of=" + combo_item + "; bash\"" | 744 | if cmdline: |
744 | subprocess.Popen(args=shlex.split(cmdline)) | 745 | cmdline += "\"sudo dd if=" + self.image_path + " of=" + combo_item + "\"" |
746 | subprocess.Popen(args=shlex.split(cmdline)) | ||
745 | 747 | ||
746 | def update_progress_bar(self, title, fraction, status=None): | 748 | def update_progress_bar(self, title, fraction, status=None): |
747 | self.progress_bar.update(fraction) | 749 | self.progress_bar.update(fraction) |