xdg-document-portal 1.0.2-1ubuntu1 crashes when trying to save to a non-existant file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-desktop-portal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When using the desktop portal API to save a file, the xdg-document-portal service crashes if we try to save to a new file name.
Steps to reproduce:
1. On an Ubuntu 18.10 system, install the test-snapd-
snap install --edge test-snapd-
2. run the save-file test:
test-
3. in the file chooser, select a file name that does not exist.
Actual results:
The command exits with the following error (eliding the traceback):
ConnectionA
Furthermore, "systemctl --user status xdg-document-
Jan 07 17:38:06 scruffy xdg-document-
Jan 07 17:38:06 scruffy xdg-document-
Jan 07 17:38:06 scruffy xdg-document-
Expected results:
The file should be created with the contents "foo".
The problem is not present with xdg-desktop-portal 1.0.3. I suspect the fix is one of these extra patches alexl suggested we take: https:/