This bug occurs when using the "SaveFile" desktop portal API and the
user chooses a new file name rather than overwriting an existing file.
It can easily be reproduced with the following steps:
1. install the test-snapd-portal-client snap:
snap install --edge test-snapd-portal-client
2. run the save-file test:
test-snapd-portal-client save-file "foo"
3. in the file chooser, select a file name that does not exist.
The command will fail with a ConnectionAbortedError exception, and xdg-
document-portal will crash with the following in the log:
Jan 07 17:38:06 scruffy xdg-document-portal[30685]: error: Invalid id
snap.test-snapd-portal-client: Names must contain at least 2 periods
Jan 07 17:38:06 scruffy xdg-document-portal[30685]: error: **
Jan 07 17:38:06 scruffy xdg-document-portal[30685]:
xdg-desktop-portal:ERROR:document-portal/document-portal-fuse.c:206:xdp_inode_destroy:
assertion failed: (inode->dir_fd == -1)
The problem does not occur with xdg-desktop-portal 1.0.3, so it is
likely that one of the patches alexl mentioned at
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-
portal/+bug/1691649/comments/10 would fix it. With that said,
backporting 1.0.3 might be the better option if we want working portals.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1810757
Title:
/usr/libexec/xdg-document-
portal:6:g_assertion_message:g_assertion_message_expr:xdp_inode_destroy:xdp_inode_unref_internal:xdp_inode_unref_internal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/1810757/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs