feat(linux): detect Linglong sandbox via LINGLONG_APPID env - #105
feat(linux): detect Linglong sandbox via LINGLONG_APPID env#105dengbo11 wants to merge 1 commit into
Conversation
When running inside a Linglong container the LINGLONG_APPID environment variable is set by the runtime, but was not checked by runningInSandbox(). Applications like LocalSend that pass a theme icon name to tray_manager were getting the icon name rewritten into a sandbox-internal absolute path, because the sandbox guard didn't recognise Linglong. Adding the env-var check is consistent with the Flatpak/Snap pattern and requires no packages to guess the app's filesystem layout.
|
Hi maintainers, I encountered an issue when using After investigation, I found that What is Linglong?Linglong (also known as Linyaps / 如意玲珑) is an open-source, cross-distribution Linux package format developed by the OpenAtom community. Key properties relevant to sandbox detection:
Why this change is needed
This is the same class of problem that Flatpak and Snap already solve — the sandbox guard simply doesn't know about Linglong. Adding The With this change, application code inside Linglong can pass a theme icon name (e.g., Best regards |
When running inside a Linglong container the LINGLONG_APPID environment variable is set by the runtime, but was not checked by runningInSandbox(). Applications like LocalSend that pass a theme icon name to tray_manager were getting the icon name rewritten into a sandbox-internal absolute path, because the sandbox guard didn't recognise Linglong.
Adding the env-var check is consistent with the Flatpak/Snap pattern and requires no packages to guess the app's filesystem layout.