Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Flatpak portals for notifications #3378

Open
2 tasks done
Jacalz opened this issue Nov 5, 2022 · 0 comments
Open
2 tasks done

Use Flatpak portals for notifications #3378

Jacalz opened this issue Nov 5, 2022 · 0 comments
Labels
enhancement New feature or request OS:Linux Tickets affecting only Linux

Comments

@Jacalz
Copy link
Member

Jacalz commented Nov 5, 2022

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

Fyne applications, like https://beta.flathub.org/apps/details/io.github.jacalz.rymdport, currently have to enable --talk-name=org.freedesktop.Notifications to support notifications over Dbus. It would be better to instead use the Flatpak portal for this as it would avoid having to enable more than permissions and also would allow the Gnome/Plasma applications settings to turn on and off notifications for the application.

Is it possible to construct a solution with the existing API?

Yes. We should just send the notification in a different way that what we currently are doing.

Describe the solution you'd like to see.

I don't know if this has been done using Go before but seems, per https://libportal.org/libportal.html, like this should be doable over Dbus. Worst case, we need to create an optional CGo wrapper around https://github.com/flatpak/libportal.

Using go build -tags flatpak might be required to solve this.

@Jacalz Jacalz added enhancement New feature or request OS:Linux Tickets affecting only Linux labels Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OS:Linux Tickets affecting only Linux
Projects
None yet
Development

No branches or pull requests

1 participant