hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
234 stars 38 forks source link

interface “org.freedesktop.portal.Background" #177

Open nodupe opened 5 months ago

nodupe commented 5 months ago

I'd like to point out a required implementation that, when missing, will not allow some Gnome programs to work properly on hyprland: they have org.freedesktop.portal.Background dependency. Before moving to hyprland, I was using Pika Backup, in Gnome. It works properly in Gnome (it's an official Gnome project), but running on hyprland it will not schedule backups or find the gnome-keyring.

After poking with dbus-monitor and searching on Git Hub, from what I could gather, it all comes down to how this software relies on org.freedesktop.portal.Background. Kindly take a look at the linked issue reported on xdg-desktop-portal.

One would need to have Background implemented so software that depends on it will work properly.

I am not sure how many other programs face the same issue, and if this is worth working on - just giving a heads-up. For my use case, while I am investigating similar backup solutions, I can just log in to Gnome and run the backups once a day.

vaxerski commented 5 months ago

MRs welcome, but why not just exec-once them? Do they use it internally?

nodupe commented 5 months ago

MRs welcome, but why not just exec-once them? Do they use it internally?

For this specific use case that's the solution at hand and works well.

Not sure for other programs.

I'd love to help myself but I can't code. :(

izmyname commented 3 months ago

Without org.freedesktop.portal.Background it's impossible to properly daemonize flatpaks, that rely on autostart, such as easyeffects. With exec-once it works on background, but only until the app, itself, is opened and closed.

edit: I don't know about other GNOME/GTK apps, but flatpak easyeffects has an option 'close program' enabled, by default, and it's impossible to disable due to lack of access to freedesktop.Background interface.