l4l: remove hardcoded path; start with full path

This commit is contained in:
GetAway
2019-01-01 23:22:34 +01:00
parent c8fcf927d9
commit ed435a5fea
3 changed files with 7 additions and 6 deletions

View File

@@ -306,7 +306,7 @@ int CMiscMenue::showMiscSettingsMenu()
#ifdef ENABLE_LCD4LINUX
// LCD4Linux Setup
CLCD4lSetup lcd4lSetup;
mf = new CMenuForwarder(LOCALE_LCD4L_SUPPORT, ((access("/usr/bin/lcd4linux", F_OK) == 0) || (access("/var/bin/lcd4linux", F_OK) == 0)), NULL, &lcd4lSetup, NULL, CRCInput::RC_4);
mf = new CMenuForwarder(LOCALE_LCD4L_SUPPORT, !find_executable("lcd4linux").empty(), NULL, &lcd4lSetup, NULL, CRCInput::RC_4);
misc_menue.addItem(mf);
#endif