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 |
|
Thank you for this, and sorry it sat here so long. tray_manager 0.7.0 replaced the per-platform plugin code with nativeapi, a shared C++ core, so The rewriting your patch guarded against is gone too: the Linux icon is handed to the shell as an SNI If what you actually need is theme-icon-name support, that is a separate gap: the core reports an empty SNI |
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.