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

Commit 1d801f52 authored by Pascal Muetschard's avatar Pascal Muetschard
Browse files

Ensure gpu_counter_producer can always find the driver's .so.

Test: tested locally
Change-Id: I4971e1b422bf4b278e8c3153e2134956c8d35700
parent 22daeee1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -133,6 +133,12 @@ int main(int argc, char** argv) {
        daemon(0, 0);
    }

    if (getenv("LD_LIBRARY_PATH") == nullptr) {
        setenv("LD_LIBRARY_PATH", "/vendor/lib64:/vendor/lib", 0 /*override*/);
        LOG_INFO("execv with: LD_LIBRARY_PATH=%s", getenv("LD_LIBRARY_PATH"));
        execvpe(pname, argv, environ);
    }

    if (!writeToPidFile()) {
        LOG_ERR("Could not open %s", kPidFileName);
        return 1;