diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 71271e916..d941e5de5 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -2209,14 +2209,17 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh) } } #endif + #ifdef ENABLE_GRAPHLCD void CControlAPI::GlcdScreenshotCGI(CyhookHandler *hh) { - std::string filename = "/tmp/glcdscreenshot.png"; + std::string filename = "screenshot-glcd"; if(!hh->ParamList["name"].empty()) filename = hh->ParamList["name"]; + filename = "/tmp/" + filename + ".png"; + cGLCD *cglcd = cGLCD::getInstance(); if (cglcd) { if (cglcd->dumpBuffer((uint32_t*)cglcd->bitmap->Data(), cGLCD::PNG, filename.c_str()))