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

No such interface “org.freedesktop.portal.Background” with PikaBackup Flatpak Scheduled Backups #1014

Closed
moshhh opened this issue May 4, 2023 · 8 comments

Comments

@moshhh
Copy link

moshhh commented May 4, 2023

Hello,

Having an issue with PikaBackup's background process. Using the flatpak. Running linux mint 21.1; with the relevant packages being ubuntu repos, there seems to be no issue on Ubuntu's tracker. Reported on launchpad.

xdg-desktop-portal-gtk - 1.14.0-1build1
flatpak - 1.12.7-1

Output of flatpak run -v when trying to configure scheduled backups

pika-backup:2): pika-backup-WARNING **: 10:21:10.646: src/ui/utils.rs:134:0: Background portal response: Zbus(MethodError(OwnedErrorName(ErrorName(Str(Owned("org.freedesktop.DBus.Error.UnknownMethod")))), Some("No such interface “org.freedesktop.portal.Background” on object at path /org/freedesktop/portal/desktop"), Msg { type: Error, sender: UniqueName(Str(Borrowed(":1.74"))), reply-serial: 5, body: Signature("s") }))

(pika-backup:2): pika-backup-WARNING **: 10:21:10.646: src/ui/utils.rs:377:0: Displaying error:
  Request to run in background failed
  The system does not support running Pika Backup in the background. Scheduled backup functionality and continuing backups in the background will not be available. This is either a malfunction, misconfi
…
issue in your distribution issue tracker.

ZBus Error: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Background” on object at path /org/freedesktop/portal/desktop
@smcv
Copy link
Collaborator

smcv commented May 4, 2023

No such interface “org.freedesktop.portal.Background”

If an application requires o.fd.portal.Background, then it needs xdg-desktop-portal 1.16.0 or later.

There is nothing that Flatpak can do to get a newer xdg-desktop-portal; it's a component that runs outside the Flatpak sandbox, like Flatpak itself, so getting a newer version is between you and your distribution.

@smcv smcv closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2023
@ways
Copy link

ways commented Jul 19, 2023

So PikaBackup is no longer compatible with Ubuntu 22.10, Fedora 37, Debian 11, CentOS (all) and earlier releases?

@smcv
Copy link
Collaborator

smcv commented Jul 19, 2023

So PikaBackup is no longer compatible with Ubuntu 22.10, Fedora 37, Debian 11, CentOS (all) and earlier releases?

If it has a hard requirement on new functionality (I don't know whether it does), then yes. In the absence of a time machine, new features don't exist in distributions that are older than those new features, unless the distribution's policy would allow adding them in later.

Some distributions provide a way to get newer versions of xdg-desktop-portal than the one they originally shipped with; for example, Debian 11 backports include a backport of xdg-desktop-portal 1.16.0.

@moshhh
Copy link
Author

moshhh commented Jul 20, 2023

It was a requirement for automatic backups. Mint was on 1.14 but the latest release should fix this issue.

@taltamir
Copy link

taltamir commented Aug 4, 2023

It was a requirement for automatic backups. Mint was on 1.14 but the latest release should fix this issue.

latest mint version is still on v1.14. it does not update to v1.16 yet

@ways
Copy link

ways commented Aug 4, 2023

So PikaBackup is no longer compatible with Ubuntu 22.10, Fedora 37, Debian 11, CentOS (all) and earlier releases?

Never mind this, I was just missing a backend. Pika works fine. Ref. https://wiki.archlinux.org/title/XDG_Desktop_Portal

@taltamir
Copy link

taltamir commented Aug 9, 2023

So PikaBackup is no longer compatible with Ubuntu 22.10, Fedora 37, Debian 11, CentOS (all) and earlier releases?

Never mind this, I was just missing a backend. Pika works fine. Ref. https://wiki.archlinux.org/title/XDG_Desktop_Portal

What do you mean?
As far as I can tell you were right the first time that various OS do not work.
You are now linking an arch linux page where you can update this flatpack component for arch linux.

But if you are using ubuntu LTS or debian LTS, then it does not work.

You need to manually import this specific package from ubuntu lunar (latest version of ubuntu) into LTS instead.
Possibly also other related packages too depending on how they are interlinked.

@joonis
Copy link

joonis commented Apr 23, 2024

Well, here I have two systems with Mint 20.3 Cinnamon. On the PC it is working, but not on the notebook.

xdg-desktop-portal-gtk 1.8.0
flatpak 1.12.2

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

No branches or pull requests

5 participants