Skip to content

Commit

Permalink
Fix empty kiosk URL #2165
Browse files Browse the repository at this point in the history
  • Loading branch information
darylc committed Feb 14, 2025
1 parent cd35422 commit 314f22d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/boot/FPPINIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,12 @@ void setupKiosk(bool force = false) {
if (km || force) {
std::string url = "http://localhost/";
getRawSetting("KioskUrl", url);

// FPP UI doesn't delete the setting, it makes it ""
if (url == "\"\"") {
url = "http://localhost/";
}

std::string value = "{\"RestoreOnStartup\": 4,\"RestoreOnStartupURLs\": [\"" + url + "\"]}";
mkdir("/etc/chromium/", 0775);
mkdir("/etc/chromium/policies", 0775);
Expand Down

0 comments on commit 314f22d

Please sign in to comment.