This is how the code that overrides the path for shared memory in oxide would look like. How does that look?
base::FilePath GetSharedMemoryPath() { // snap packages const char* tmp = getenv("SNAP_NAME"); if (tmp) { return base::FilePath(std::string("/dev/shm/snap.") + tmp + ".oxide"); }
// click packages tmp = getenv("APP_PKGNAME"); if (tmp) { return base::FilePath(std::string("/dev/shm/") + tmp + ".oxide"); }
// default return base::FilePath("/dev/shm"); }
This is how the code that overrides the path for shared memory in oxide would look like. How does that look?
base::FilePath GetSharedMemory Path() { "SNAP_NAME" ); std::string( "/dev/shm/ snap.") + tmp + ".oxide");
// snap packages
const char* tmp = getenv(
if (tmp) {
return base::FilePath(
}
// click packages "APP_PKGNAME" ); std::string( "/dev/shm/ ") + tmp + ".oxide");
tmp = getenv(
if (tmp) {
return base::FilePath(
}
// default "/dev/shm" );
return base::FilePath(
}