flathub / app.kaiteki.Kaiteki

https://flathub.org/apps/details/app.kaiteki.Kaiteki
0 stars 0 forks source link

App fails to start without manually adding socket=session-bus permission #3

Open AbrarSL opened 12 months ago

AbrarSL commented 12 months ago
** (app.kaiteki.Kaiteki:2): WARNING **: 14:26:23.385: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

This is the output when the app is run through the terminal. Adding the session-bus socket via flatseal allows the app to launch

Craftplacer commented 12 months ago

seems related to https://github.com/flutter/flutter/issues/87900

bbhtt commented 12 months ago

It's because the app uses the dbus well known name moe.craftplacer.kaiteki but was submitted under a different app-id. Flatpak by default grants access to that, but if they are different it can't.

It should've been submitted under the app id moe.craftplacer.kaiteki instead.

This update here caused the change https://github.com/flathub/app.kaiteki.Kaiteki/commit/2f10464ef445d4aeb503bcf27eccfcad31a3a2fd because it was working when it was reviewed.

bbhtt commented 12 months ago

If you have a preference for moe.craftplacer.kaiteki, declare that the stable and unique id upstream - use it to name desktop, icon, appdata app-id etc. EOL this package, resubmit it with moe.craftplacer.kaiteki

Note, in this case craftplacer.moe has to be a real domain under the control of the project that resolves, it does not seem to resolve right now.

Else, add --own-name=moe.craftplacer.kaiteki here.

Else, use app.kaiteki.Kaiteki upstream and release another update.

The app id isn't chosen by accident, it has some significance when sandboxed and for portals to work.

Mar0xy commented 12 months ago

I think it's best to use app.kaiteki.Kaiteki upstream as well since that id just makes more sense so for now I will just append --own-name=app.kaiteki.Kaiteki to finish args to fix the issue until the upstream changes

bbhtt commented 12 months ago

Sorry, I typoed it should be --own-name=moe.craftplacer.kaiteki, right now app.kaiteki.Kaiteki is granted by default as it matches the flatpak id

Mar0xy commented 12 months ago

Sorry, I typoed it should be --own-name=moe.craftplacer.kaiteki

Ah, alright

bbhtt commented 12 months ago

I've opened https://github.com/flathub/documentation/pull/112 to clarify the docs and make it available for potential app submitters.