Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8bfaae9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "HWC screencap portability improvement" into main am: 5f9c7861

parents 5e66590c 5f9c7861
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4631,7 +4631,7 @@ void Dumpstate::UpdateProgress(int32_t delta_sec) {
void Dumpstate::TakeScreenshot(const std::string& path) {
    const std::string& real_path = path.empty() ? screenshot_path_ : path;
    int status =
        RunCommand("", {"/system/bin/screencap", "-p", real_path},
        RunCommand("", {"screencap", "-p", real_path},
                   CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
    if (status == 0) {
        MYLOGD("Screenshot saved on %s\n", real_path.c_str());