toeverything / AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
https://affine.pro
Other
42.45k stars 2.76k forks source link

​linux app doesn't run on ubuntu 24 #8352

Open tigerline86 opened 1 month ago

tigerline86 commented 1 month ago

What happened?

Hello, after updating from Kubuntu 22 to version 24, the app for Linux has broken and won't start.

Distribution version

Linux

What browsers are you seeing the problem on if you're using web version?

Other

Are you self-hosting?

Relevant log output

No response

Anything else?

No response

affine-issue-bot[bot] commented 1 month ago

Issue Status: 🆕 *Untriaged

*🆕 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.

acelan commented 1 month ago

Try adding the file /etc/apparmor.d/affine-appimage With the content (remember to change the [USERNAME] to yours)

abi <abi/4.0>,
include <tunables/global>

profile affine /home/[USERNAME]/Applications/affine*.appimage flags=(unconfined) {
  userns,

  # Site-specific additions and overrides.  See local/README for details.
  include if exists <local/affine>
}

Then run sudo apparmor_parser -r /etc/apparmor.d/affine-appimage

This works for me.