Skip to content

Commit 314f22d

Browse files
committed
Fix empty kiosk URL #2165
1 parent cd35422 commit 314f22d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/boot/FPPINIT.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,12 @@ void setupKiosk(bool force = false) {
11531153
if (km || force) {
11541154
std::string url = "http://localhost/";
11551155
getRawSetting("KioskUrl", url);
1156+
1157+
// FPP UI doesn't delete the setting, it makes it ""
1158+
if (url == "\"\"") {
1159+
url = "http://localhost/";
1160+
}
1161+
11561162
std::string value = "{\"RestoreOnStartup\": 4,\"RestoreOnStartupURLs\": [\"" + url + "\"]}";
11571163
mkdir("/etc/chromium/", 0775);
11581164
mkdir("/etc/chromium/policies", 0775);

0 commit comments

Comments
 (0)