diff options
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) |
