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

Commit 30e23605 authored by Abdelrahman Daim's avatar Abdelrahman Daim
Browse files

HWC screencap portability improvement



Summary: Removing the only reference to the hardcoded full unix path of screencap.
This will help with portability.

Test: Successful Build on master branch

Change-Id: I8cb83cf312c5dea6f2688864b84145d8eb47be3d
Signed-off-by: default avatarAbdelrahman Daim <adaim@meta.com>
parent 0eb6ba93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4608,7 +4608,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());