/srv/irclogs.ubuntu.com/2022/06/20/#ubuntu-desktop.txt

=== Kilroy- is now known as Kilroy
jibelGood morning all07:14
didrocksgood morning07:16
oSoMoNgood morning desktoppers07:36
dufluHi jibel, didrocks, oSoMoN 07:38
oSoMoNhey duflu07:42
oSoMoNsalut jibel & didrocks 07:42
didrockshey duflu, salut oSoMoN 07:43
=== cpaelzer_ is now known as cpaelzer
alocerHello all. I've forgotten where did you guys store the scripts for creating the live-cd's ?08:39
alocerI've managed to create a live image with the help of live-build from debian team. kudos to elementary/os repository on github.08:41
alocerthere is another with is a custom script regolith linux repository on github is using that as well. I only want to compare different ways different teams are working to create live-cd's.08:41
alocer\m/08:42
seb128goood morning desktopers, sounds like I forgot to start IRC today!08:42
oSoMoNsalut seb128 08:44
dufluMorning seb128 08:46
seb128lut oSoMoN, hey duflu, how are you?08:47
dufluseb128, not bad. You?08:47
seb128I'm alright thanks!08:47
oSoMoNI'm good, had a very relaxing week-end camping by the beach with friends.08:48
dufluoSoMoN wins the weekend08:49
lissyxoSoMoN, seb128: hello10:56
lissyxI'm wondering if you had knowledges around XDG Document Portal ?10:56
lissyxcontext: https://bugzilla.mozilla.org/show_bug.cgi?id=1774556#c5610:57
ubottuMozilla bug 1774556 in Core "Firefox fails to save a page and its contents to remote gvfs mount point when using SNAP version" [--, Unconfirmed]10:57
seb128jamesh, ^ do you maybe know?11:04
lissyxfrom reading the code it's not super clear to me11:09
jameshseb128: haven't read all of the bug report, but going by the end of it, I'd expect the mkdir() calls to fail: when exposing a writable file, xdg-desktop-portal really only allows creating a temporary file in the directory provided and renaming the temporary file over the top of the real file name.11:11
lissyxjamesh, ok, do you have some reference that states that and we could link?11:15
lissyxjamesh, also, is this something fundamentally unfixable or just a choice ?11:15
jameshlissyx, seb128: xdg-desktop-portal does have a relatively new SaveFiles() method that could potentially handle this use case: it lets the caller provide a list of files they want to save to, and returns a corresponding list of document portal paths the app can write to.11:17
lissyxjamesh, yes sergio mentionned that11:17
lissyxjamesh, although would it allow for a directory created ?11:17
lissyxjamesh, and the caller of `SaveFile` is not us, it is GTK, so it would require quite some change either on our side or GTK's11:18
jameshlissyx: it wouldn't let Firefox create the directory, no. If xdg-desktop-portal allows path elements in the files list though, it might be possible.11:20
jameshotherwise, Firefox would need to save all the page resources in the current directory11:20
lissyxI am unsure this is an acceptable change, it would make the behavior deviate too much.11:21
jameshAnd I realise the paths are important to Firefox, since it needs to fix up URL paths in the HTML11:21
lissyxjamesh, so i'd need to try and pass SaveFiles() the HTML file as well as the resources that are living under the subdir (with the subdir)11:21
lissyxI failed to find some doc on how I could trigger a SaveFiles() manually from maybe shell or python11:22
lissyxI guess I need to try again, some python + dbus and check if we can make something like that11:22
jameshlissyx: from the look of the xdg-desktop-portal-gtk UI implementation, you could potentially specify subdirectories for some of the files to save. I don't know if xdg-document-portal would actually create them for you when trying to write to those files though.11:34
jameshIt may also decide to rename some of the files you specify if there are existing files by those names. I imagine that'll be a problem for Firefox's use case too: https://github.com/flatpak/xdg-desktop-portal-gtk/blob/main/src/filechooser.c#L152-L17411:35
jameshPresumably there is similar code in xdg-desktop-portal-gnome11:35
lissyxyep11:52
lissyxjamesh, I was hopeful because of https://github.com/flatpak/xdg-desktop-portal/blob/13e8307791bbd549cc882b4e368032ad8f53536d/document-portal/document-portal.c#L301-L30211:54
jbichagood morning12:01
KGB-2libsigcplusplus pipeline Jeremy Bicha 391032 * pending (extract-source: pending; build: created; build i386: created; build source: created; test-build-any: created; test-build-all: created; test-crossbuild-arm64: created; reprotest: created; lintian: created; autopkgtest: created; blhc: created; piuparts: created)20:01
KGB-0libsigcplusplus pipeline Jeremy Bicha 391032 * [8 minutes and 26 seconds] failed (extract-source: success; build: success; build i386: success; build source: success; test-build-any: success; test-build-all: success; test-crossbuild-arm64: success; reprotest: failed; lintian: success; autopkgtest: success; blhc: success; piuparts: success)20:10

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!