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");
}
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1260103
Title:
oxide should use an app-specific path for shared memory files
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1260103/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs