From 2fd736c28d5e4ba0f5f462671136af02892c8e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81?= Date: Tue, 6 Jun 2017 15:39:29 +0800 Subject: [PATCH] Patch GUI to use updated winusb commandline options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ๆž—ๅšไป --- src/MainPanel.cpp | 2 +- src/winusb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MainPanel.cpp b/src/MainPanel.cpp index 3909137..cb430b5 100755 --- a/src/MainPanel.cpp +++ b/src/MainPanel.cpp @@ -240,7 +240,7 @@ void MainPanel::OnInstall(wxCommandEvent& event) iso = m_dvdDriveDevList.at(m_dvdDriveList->GetSelection()); } - PipeManager pipe(std::string("gksudo --description 'WinUSB' -- sh -c 'winusb --noColor --forGui --format \"") + iso + "\" \"" + device + "\" 2>&1'"); + PipeManager pipe(std::string("gksudo --description 'WinUSB' -- sh -c 'winusb --no-color --for-gui --format \"") + iso + "\" \"" + device + "\" 2>&1'"); wxProgressDialog *dialog = new wxProgressDialog(_("Installing..."), _("Please wait..."), 100, GetParent(), wxPD_APP_MODAL | wxPD_SMOOTH | wxPD_CAN_ABORT); diff --git a/src/winusb b/src/winusb index 5323276..9cc360a 100755 --- a/src/winusb +++ b/src/winusb @@ -947,7 +947,7 @@ process_commandline_parameters(){ '--verbose'|'-v') verbose='1' ;; - '--forGui') + '--for-gui') no_color='1' only_for_gui='1' ;;