Package: xdg-desktop-portal
Version: 1.20.0+ds-2
Severity: important
Forwarded: https://github.com/flatpak/xdg-desktop-portal/issues/1674
Control: fixed -1 1.20.1+ds-1

Steps to reproduce:

* Have a working desktop system with Flatpak (I used GNOME)
* **Don't** have epiphany-browser (GNOME Web) installed
  (sudo apt remove epiphany-browser)
* flatpak remote-add --if-not-exists flathub \
  /usr/share/doc/flatpak/examples/flathub.flatpakrepo
* flatpak install flathub org.gnome.Epiphany
* flatpak run org.gnome.Epiphany
* Visit some website, I used wiki.debian.org as an example
* Press Shift+Ctrl+A to install it as a webapp
* The window becomes shaded and a popup "Create Web App" appears
* Click [Create]

Expected result:

* Success
* A notification "The application “Debian Wiki” is ready …"
* After a short time, the Debian wiki appears in the desktop's
  apps menu as an "app", which runs the Flatpak version of Epiphany
  in a special mode with reduced browser chrome, opening internal links
  within the site in the "app" but sending external links to the default
  browser

Actual result:

* A notification "The application “Debian Wiki” could not be c…"
* epiphany's stderr shows a warning:
  The application “Debian Wiki” could not be created:
  Failed to install desktop file […]:
  GDBus.Error:org.freedesktop.portal.Error.InvalidArgument:
  Desktop entry given to Install() not valid

Solution:

* Install xdg-desktop-portal (>= 1.20.1), currently only in experimental
* systemctl --user daemon-reload
* systemctl --user restart xdg-desktop-portal.service
  (or log out and back in)
* Try again

I'm opening this to track the most serious of the issues resolved by 
x-d-p 1.20.1, so that I can request a freeze exception for it.

    smcv

Reply via email to