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

Add a Background portal implementation #2

Closed
mikix opened this issue May 29, 2023 · 7 comments · Fixed by #15
Closed

Add a Background portal implementation #2

mikix opened this issue May 29, 2023 · 7 comments · Fixed by #15

Comments

@mikix
Copy link

mikix commented May 29, 2023

Some apps use this to autostart and run in the background, and/or provide information about running background tasks.

See Gnome’s version here: https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/blob/main/src/background.c

Two apps that I know use this are Deja Dup Backups and Pika Backup. Without this portal, those apps can’t provide scheduled backup support. I’m sure there are other examples, but that’s one at least.

@moshhh
Copy link

moshhh commented Jul 20, 2023

Seconding this request. I use pikabackup as my primary backup tool and not having the automatic backups here is a bit annoying.

@taltamir
Copy link

taltamir commented Aug 12, 2023

I believe Crow Translate is another program that needs it. as per
crow-translate/crow-translate#599

@debilin
Copy link

debilin commented Dec 11, 2023

+1 🙏

@carobinario
Copy link

carobinario commented Jan 29, 2024

I can confirm this issue still exists on Linux Mint 21.3 Cinnamon. Please fix it, thanks.

ps. I can't schedule Pika Backup backups.

@guryushika
Copy link

I have the same error on Mint 21.3, fresh install. I’ve tried to tinker around in Flatseal and in different places add org.freedesktop.portal.Background (don’t really understand exactly what it is). Same error message.

@AtomicRobotMan0101
Copy link

@mtwebster
Copy link
Member

This should be in the next version, working on it.

mtwebster added a commit to mtwebster/xdg-desktop-portal-xapp that referenced this issue Apr 4, 2024
mtwebster added a commit to mtwebster/xdg-desktop-portal-xapp that referenced this issue Apr 5, 2024
mtwebster added a commit to mtwebster/xdg-desktop-portal-xapp that referenced this issue Apr 10, 2024
Closes: linuxmint#2

- GetAppState: it currently can't retrieve info on apps with no
  window - this applies to apps that minimize to the system tray
  while they're not visible. This is a limitation in Cinnamon.

- RunningApplicationsChanged: works to the extent the windowless
  application issue allows.

- NotifyBackground - Currently, always allows background apps,
  which makes it consistent with normal system apps.

- EnableAutostart: Fully functional.

I note that while NotifyBackground creates a desktop file
successfully, disabling 'autostart' in a couple of test apps
does not delete that file (testing this with -xapp portal works
fine - the main portal backend isn't receiving anything at all
from the app (the backgrounding remains allowed in the permission
store also) - this could be deliberate.
mtwebster added a commit that referenced this issue Apr 11, 2024
Closes: #2

- GetAppState: it currently can't retrieve info on apps with no
  window - this applies to apps that minimize to the system tray
  while they're not visible. This is a limitation in Cinnamon.

- RunningApplicationsChanged: works to the extent the windowless
  application issue allows.

- NotifyBackground - Currently, always allows background apps,
  which makes it consistent with normal system apps.

- EnableAutostart: Fully functional.

I note that while NotifyBackground creates a desktop file
successfully, disabling 'autostart' in a couple of test apps
does not delete that file (testing this with -xapp portal works
fine - the main portal backend isn't receiving anything at all
from the app (the backgrounding remains allowed in the permission
store also) - this could be deliberate.
@linuxmint linuxmint deleted a comment from lumper5 Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants