mirror of
https://github.com/uroni/urbackup_frontend_wx.git
synced 2025-10-26 11:19:28 +00:00
Look for version and urbctctl.exe in correct path
This commit is contained in:
parent
107c8474ce
commit
8ec04d0c07
@ -10,7 +10,7 @@ CbtStatus::CbtStatus(wxWindow* parent)
|
||||
{
|
||||
SetIcon(wxIcon(res_path + wxT("backup-ok.") + ico_ext, ico_type));
|
||||
|
||||
long pid = wxExecute("urbctctl.exe status all", wxEXEC_ASYNC, this);
|
||||
long pid = wxExecute(wxT("\"") + res_path + wxT("urbctctl.exe\" status all"), wxEXEC_ASYNC, this);
|
||||
if (pid != 0)
|
||||
{
|
||||
Redirect();
|
||||
|
||||
6
Info.cpp
6
Info.cpp
@ -42,8 +42,8 @@ Info::Info(wxWindow* parent) : GUIInfo(parent)
|
||||
m_textCtrl14->SetValue(ConvertToUnicode(inf));
|
||||
Show(true);
|
||||
|
||||
std::string n_version = getFile("version.txt");
|
||||
std::string c_version = getFile("curr_version.txt");
|
||||
std::string n_version = getFile(g_res_path+"version.txt");
|
||||
std::string c_version = getFile(g_res_path+"curr_version.txt");
|
||||
if (n_version.empty())n_version = "0";
|
||||
if (c_version.empty())c_version = "0";
|
||||
|
||||
@ -57,7 +57,7 @@ Info::Info(wxWindow* parent) : GUIInfo(parent)
|
||||
Layout();
|
||||
}
|
||||
|
||||
if (FileExists("urbctctl.exe"))
|
||||
if (FileExists(g_res_path+"urbctctl.exe"))
|
||||
{
|
||||
wxButton* cbtStatusButton = new wxButton(this, wxID_ANY, _("Show CBT status"));
|
||||
m_versionSizer->Add(cbtStatusButton);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user