Open elindiotaino opened 2 months ago
*🆕 Untriaged**
The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md
This is an automatic reply by the bot.
Sorry, we have limited resource on linux right now. Will take a look in the following week, but no promise on how long will it take.
Also, marked this issue as help wanted
an see if there are any solutions from the community
@elindiotaino I reviewed the desktop file you provided and it looks like the exec entry is incorrect. If you integrate the appimage with AppImageLauncher, it will produce something like this:
[Desktop Entry]
Name=AFFiNE
Exec=AFFiNE --no-sandbox --disable-setuid-sandbox %u
Terminal=false
Type=Application
Icon=AFFiNE
StartupWMClass=AFFiNE
X-AppImage-Version=0.17.2
Comment=AFFiNE Desktop App
Categories=Utility
MimeType=x-scheme-handler/affine
The part --no-sandbox --disable-setuid-sandbox
in EXEC is to make the electron app run without sandbox & %u
is to pass deeplink urls to the app for sign-in workflow.
What happened?
I am encountering issues launching the Affine 0.17.0-stable-linux-x64 version on my Ubuntu 22.04 LTS system. While I can run the application directly from the executable in the extracted .zip folder, launching Affine from the .desktop file (or from the taskbar) fails. The logs show a SUID sandbox error that seems related to the chrome-sandbox binary.
This issue appears similar to what was reported in Issue #6722, which was marked as fixed. However, the problem persists for me in version 0.17.0.
System Information: OS: Ubuntu 22.04 LTS (GNOME) Affine Version: 0.17.0-stable-linux-x64 AppImage/.zip: Both tested libfuse2 Installed: Yes SUID sandbox permissions fixed: Yes, tried chmod 4755 on the chrome-sandbox binary.
Steps to Reproduce:
Expected Behavior: Affine should launch correctly (when launching from .desktop) without the SUID sandbox issue.
Actual Behavior: The .desktop file fails to launch the application. Running the executable directly works but doesn't provide the expected system integration.
Desktop File Contents:
Troubleshooting Steps Taken:
Installed libfuse2 and verified it is correctly installed.
Changed ownership and permissions of the chrome-sandbox binary:
Tried launching with --no-sandbox flag:
Set AppArmor to "complain" mode using:
Attempted to manually set the .desktop file as trusted using:
Rebuilt the desktop icon cache:
Distribution version
Linux
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
Relevant log output
Anything else?
Additional Notes:
Suggestions: