From ed99ad96395c99092c7403d87382279a72621c28 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 15 Dec 2017 23:20:55 +0100 Subject: [PATCH] settings_manager: add TARGET_PREFIX define to backup/restore calls Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8f080ff1a838d2dab99f7d5798f204a7db5788d7 Author: vanhofen Date: 2017-12-15 (Fri, 15 Dec 2017) Origin message was: ------------------ - settings_manager: add TARGET_PREFIX define to backup/restore calls --- src/gui/settings_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/settings_manager.cpp b/src/gui/settings_manager.cpp index 9c11faa88..36066f3bc 100644 --- a/src/gui/settings_manager.cpp +++ b/src/gui/settings_manager.cpp @@ -117,7 +117,7 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey) //NI CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_SETTINGS_BACKUP)); hintBox->paint(); - const char backup_sh[] = "/bin/backup.sh"; + const char backup_sh[] = TARGET_PREFIX "/bin/backup.sh"; printf("backup: executing [%s %s]\n", backup_sh, fileBrowser.getSelectedFile()->Name.c_str()); my_system(2, backup_sh, fileBrowser.getSelectedFile()->Name.c_str()); hintBox->hide(); @@ -138,7 +138,7 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey) int result = ShowMsg(LOCALE_SETTINGS_RESTORE, g_Locale->getText(LOCALE_SETTINGS_RESTORE_WARN), CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo); if(result == CMsgBox::mbrYes) { - const char restore_sh[] = "/bin/restore.sh"; + const char restore_sh[] = TARGET_PREFIX "/bin/restore.sh"; printf("restore: executing [%s %s]\n", restore_sh, fileBrowser.getSelectedFile()->Name.c_str()); my_system(2, restore_sh, fileBrowser.getSelectedFile()->Name.c_str()); }