libportal icon indicating copy to clipboard operation
libportal copied to clipboard

How to detect the state of autostart background in libportal?

Open Digitalone1 opened this issue 4 years ago • 1 comments

Hello everyone.

Through libportal we can request to enable autostart for a specific app. But how can we check if the autostart is enabled for the same app?

Is there a specific method or process to detect it? I don't see any function to get it and even Gnome ToDo that implements this service is using a gsettings key to track the state rather than ask to libportal, which is not really ideal.

Am I missing something or this is not possible?

Digitalone1 avatar Sep 11 '21 14:09 Digitalone1

That is not possible from the Background portal implementation. See https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Background. If such thing has to be implemented in the libportal side, it has to be added first to https://github.com/flatpak/xdg-desktop-portal/

bilelmoussaoui avatar Jan 19 '22 11:01 bilelmoussaoui