mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
hdd_menu: also recognize recordingdir if it is a symlink
...like "/media/by-label/foo/movies", no need to reset configuration in that case
This commit is contained in:
committed by
Jacek Jendrzej
parent
f607fe5fbe
commit
17395a7fed
@@ -390,6 +390,14 @@ void CHDDMenuHandler::setRecordPath(std::string &dev)
|
||||
printf("CHDDMenuHandler::setRecordPath: recordingdir already set to %s\n", newpath.c_str());
|
||||
return;
|
||||
}
|
||||
/* don't annoy if the recordingdir is a symlink pointing to the 'right' location */
|
||||
string readl = backtick("readlink -f " + g_settings.network_nfs_recordingdir);
|
||||
readl = trim(readl);
|
||||
if (newpath.compare(readl) == 0) {
|
||||
printf("CHDDMenuHandler::%s: recordingdir is a symlink to %s\n",
|
||||
__func__, newpath.c_str());
|
||||
return;
|
||||
}
|
||||
bool old_menu = in_menu;
|
||||
in_menu = false;
|
||||
int res = ShowMsg(LOCALE_RECORDINGMENU_DEFDIR, LOCALE_HDD_SET_RECDIR, CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo);
|
||||
|
Reference in New Issue
Block a user