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

=== guiverc2 is now known as guiverc
oSoMoNgood morning desktoppers06:01
dufluHi oSoMoN 06:02
oSoMoNhey duflu, how are you?06:03
dufluoSoMoN, not bad, how are you going?06:06
oSoMoNI'm doing good, did many things during the week-end and still managed to get some rest06:07
lunamorning06:12
dufluHi luna 06:13
oSoMoNmorning luna06:13
dufluoSoMoN, my main achievement was attaching an outdoor heater to a brick wall. Hope it hasn't fallen down already06:13
oSoMoNduflu, that sounds like advanced DIY, but an easy problem from an engineering perspective :)06:22
jibelGood morning all06:37
dufluMorning jibel 06:43
seb128goood morning desktopers!07:23
lissyxhello07:25
dufluHi seb128 and lissyx 07:27
didrockssalut seb128, lissyx, duflu 07:27
dufluHi didrocks 07:27
seb128hey lissyx duflu didrocks, how are you?07:36
seb128did everyone had a nice weekend?07:36
dufluseb128, not bad and the weekend was nice. How are you?07:36
seb128I'm alright thanks, my stomach was back to normal just on time to enjoy the sunny weekend :)07:38
seb128oSoMoN, hey, could you review/sponsor bug #1978341 ? I'm unsure if the patch split makes sense there, feels like it might be easier to maintain as one but I don't know if dpkg complaining is a sign we should handle it differently? maybe a quilt refresh would 'fix' it by 'merging' the changes07:40
ubottuBug 1978341 in xdg-desktop-portal (Ubuntu) "Merge for xdg-desktop-portal 1.14.4 from Debian unstable" [Wishlist, Confirmed] https://launchpad.net/bugs/197834107:40
didrocksça va :)07:40
lissyxseb128, good enough08:03
lissyxworrying about the heat wave to come ...08:03
lissyxdiddledani, so I fail to get /usr/lib/x86-64/libvgfs.... into /snap/xxx/08:04
seb128lissyx, the bug you duplicated seems slightly different from yours since it was speaking about using the fuse mount in /var/run/user when you use the gvfs smb:// url, that should go through different stacks08:40
seb128the first one is a normal local filesystem behind a fuse mount08:40
oSoMoNseb128, sure, let me take a look08:40
lissyxwhich one?08:40
seb128lissyx, https://bugzilla.mozilla.org/show_bug.cgi?id=176731608:40
ubottuMozilla bug 1767316 in Core "Snap can browse network share, but cannot read/write there" [S3, Resolved: Duplicate]08:40
seb128lissyx, the fuse case shouldn't need gvfs where using the smb url does08:41
lissyx"Have a SMB file server available where the network shares can be mounted just by clicking on the share in Nautilus file manager (smb:// protocol,"08:41
lissyxthat seems very much like I do08:41
lissyxseb128, and the reporter confirmed seeing exactly the same error message: https://bugzilla.mozilla.org/show_bug.cgi?id=1767316#c1308:41
ubottuMozilla bug 1767316 in Core "Snap can browse network share, but cannot read/write there" [S3, Resolved: Duplicate]08:41
seb128lissyx, k, well I'm just pointed out that the fuse mounts have been made to be able to use mounted shared by softwares not using gvfs08:42
seb128pointing08:42
oSoMoNhrm, gitlab.freedesktop.org is down, and that breaks the builds of the firefox and chromium snaps, as that's where they get the pipewire source from08:42
lissyxI dont think it's reallly mounted through fuse08:42
lissyxhe mentions using nautilus the same way I did, the error he has reports smb:// as well08:42
seb128lissyx, it should be mounted in /var/run/users/...gvfs/...08:42
seb128lissyx, well you could try if the fuse mount exist and if using that directory instead of the sidebar entry works08:43
lissyxseb128, the issue so far is lack of libgvfsdbus lib makes the code unable to transform the smb:// URI into a /run/user/... URI08:43
lissyxhence the nullptr for path in the code at some point, that we see in the error message08:44
seb128lissyx, let me try if adding it fixes it08:47
lissyxthat's what I'm trying to do since friday ...08:47
oSoMoNseb128, I commented on bug #1978341, shall I do the merge myself, or let Nathan handle it?08:48
ubottuBug 1978341 in xdg-desktop-portal (Ubuntu) "Merge for xdg-desktop-portal 1.14.4 from Debian unstable" [Wishlist, Confirmed] https://launchpad.net/bugs/197834108:48
lissyxseb128, see the small snap repro in attachment https://bugzilla.mozilla.org/show_bug.cgi?id=177362408:48
ubottuMozilla bug 1773624 in Core "Firefox Snap no longer able to save file on SMB share" [--, New]08:48
seb128oSoMoN, just do it I would say?08:49
seb128lissyx, you could locally try by snap download/unsquashfs/change the content/snapcraft snap DIR 08:49
oSoMoNseb128, ok08:50
lissyxseb128, I'm trying stuff done on the gimp package but it looks like some variables are not defined08:50
lissyxlike $SNAP08:50
seb128lissyx, from https://wiki.gnome.org/Projects/gvfs/doc 'Local path mapping' that requires talking to gvfsd to query the mounts info and I'm unsure snapd will let you do that as mentioned on friday08:52
seb128lissyx, $SNAP is defined in the snap08:52
seb128lissyx, snap run --shell firefox; echo $SNAP08:53
lissyxseb128, I have no idea what all this  gvfsd and mount info means precisely08:53
lissyxfile picker gets us some smb:// URI08:53
lissyxand the file picker is the one from the xdg portal08:53
seb128lissyx, the portal is a session component, it has access to libgvfsdbus if that's installed on your distro08:54
seb128it's not under the snap confinement08:54
lissyxwell08:56
lissyxit is installed ...08:56
lissyxseb128, this is where you get the nullptr mentionned in journalctl https://github.com/flatpak/xdg-desktop-portal/blob/e3ca5567a2dbb5b763a383bba5ff1c0437a7e851/src/documents.c#L8009:02
lissyxURI here is the smb://09:02
seb128jamesh, ^ do you have any idea why that would fail?09:03
lissyxthe closest I could get was this small reproducer09:03
lissyxrunning bare, it works09:03
lissyxrunning under snap, even with no sandboxing applied, it failed09:04
lissyxmissing  gio modules seemed the best clue09:04
lissyxseb128, I'm trying to unsquash and repack but it's not working and it's possible I'm just messing with gio there09:04
seb128lissyx, under the snap yes, but the portal isn't in the snap so that doesn't make much sense to me09:05
lissyxgimp's hack from diddledani has some gio module cache rebuild09:05
lissyxI dont think I can run the snap with rr ?09:05
jameshseb128: xdg-desktop-portal disables gvfs support: https://github.com/flatpak/xdg-desktop-portal/blob/main/src/xdg-desktop-portal.c#L380-L38109:06
seb128lissyx, ^ that's the difference with your testcase09:06
lissyxso09:06
lissyxwe just cannot get this to work ?09:06
seb128not today, it needs work on the portals I think09:06
seb128https://github.com/flatpak/xdg-desktop-portal/issues/21309:06
ubottuIssue 213 in flatpak/xdg-desktop-portal "ensure the file chooser only sends file: uris back" [Open]09:06
jameshat present, it won't work. In theory, it could potentially be made to work09:07
jameshi.e. xdg-document-portal's fuse server could proxy requests to gvfsd-fuse09:07
lissyxok09:09
jameshI haven't really looked into how difficult this would be to achieve, and would likely only work for the xdg-desktop-portal-gtk UI09:10
jameshnot kde09:10
lissyxjamesh, seb128, then at least we should not show those mount points into the xdg desktop portal file picker09:10
seb128lissyx, did you try if browsing the /var/run/user/UID/gvfs ... directory works as a workaround?09:10
lissyxseb128, I was about to test that, but still09:11
lissyxyes it works09:11
seb128lissyx, yes, sadly I think it's not trivial to hide them because the GTK dev removed the 'local' mode, https://discourse.gnome.org/t/gtk4-gtkfilechooser-show-only-local-files09:12
seb128lissyx, you should report the issue on https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues at least as a first step09:14
lissyxso the feature is broken, and we can't avoid the user getting tricked into thinking it is going to work09:14
lissyxseb128, why on gnome and not on the original one?09:15
seb128lissyx, original? you mean xdg-desktop-portal?09:15
lissyxyes09:15
seb128lissyx, xdg-desktop-portal has the backend and -gnome the frontend09:16
lissyxok09:16
seb128lissyx, so there is work on xdg-desktop-portal to add gvfs support, which is already reported, but also as you mentioned until that is done the frontend shouldn't show non working entries, and that's on -gnome 09:17
lissyxright09:18
jameshlissyx: one thing you could try would be to run "GIO_USE_VFS=local /usr/libexec/xdg-desktop-portal-gnome -r", then try to open a file from one of your snaps09:18
jameshdoes that remove the non-local file paths from the chooser for you?09:19
lissyxjamesh, I'll test09:21
lissyxjamesh, to make it clear, https://github.com/flatpak/xdg-desktop-portal/issues/213 this is the bug that needs to be fixed so we can have it working, right ?09:21
ubottuIssue 213 in flatpak/xdg-desktop-portal "ensure the file chooser only sends file: uris back" [Open]09:21
lissyxjamesh, yes, I dont see the remotes when this env var is set09:22
jameshlissyx: that looks like it, yes.09:24
jameshmaking xdg-desktop-portal-gnome use GIO_USE_VFS=local is basically just extending the existing restriction to the new UI service09:24
lissyxhttps://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/4809:28
ubottuIssue 48 in GNOME/xdg-desktop-portal-gnome "File picker should not display remote gvfs mountpoint it cannot handle until https://github.com/flatpak/xdg-desktop-portal/issues/213 is fixed" [Opened]09:28
jameshlooks good.09:31
seb128lissyx, thanks, I will handle backporting fixes to Ubuntu once there is one09:31
lissyxjamesh, seb128, and there's no nasty workaround we could use to either force the portal to hide it for us, or show the raw mounpoints rather than the gvfs ones?09:31
lissyxbecause I fear this will continue to create a lot of dupes on our side ...09:31
jameshmaybe note that setting GIO_USE_VFS=local was enough to get the file chooser to only display local files09:32
lissyxdone09:36
oSoMoNjbicha, hey, when you get online, you might want to pull https://salsa.debian.org/osomon-guest/xdg-desktop-portal/-/tree/ubuntu/kinetic into https://salsa.debian.org/debian/xdg-desktop-portal (I can't do that myself, and I can't even propose a PR because there's no ubuntu/kinetic branch yet)09:49
seb128oSoMoN, he's off today, I did it now10:19
seb128jbicha, ^ fyi10:19
oSoMoNthanks!10:19
seb128oSoMoN, I also updated the gbp.conf and tagged it now10:21
schopinhi there :). Do I need to do something to get the rust toolchain packages copied over from the security PPA, or will it get done alongside firefox?10:27
seb128hey schopin, that's a question for oSoMoN ^10:35
seb128oSoMoN, weird, https://salsa.debian.org/debian/xdg-desktop-portal/-/jobs/2872792 10:36
seb128dpkg-source: error: diff 'source_dir/debian/patches/webextensions-portal.patch' patches files multiple times; split the diff in multiple files or merge the hunks into a single one10:36
seb128CI doesn't like it but it built fine in the archive, I wonder if next time we should just quilt refresh to reformat10:37
oSoMoNseb128, see my two comments on bug #197834110:49
ubottuBug 1978341 in xdg-desktop-portal (Ubuntu) "Merge for xdg-desktop-portal 1.14.4 from Debian unstable" [Wishlist, Fix Committed] https://launchpad.net/bugs/197834110:49
oSoMoNI think dpkg-source is being too restrictive here, I find it perfectly valid to have a patch file that patches multiple times the same file10:50
oSoMoNthanks for the tagging, I had done it locally but forgot to push the tags…10:50
oSoMoNschopin, the rustc and cargo updates prepared by you are in https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/+packages and will be copied over to the respective security pockets by Chris when he sponsors the firefox updates10:51
oSoMoNthanks again for your work on the updates btw!10:51
schopinsure, thanks for the info!10:52
nteodosiooSoMoN: Another option I had found was to apply the patch and then extract the resulting diff in a new patch. This way a given file wouldn't be patched multiple times.10:54
oSoMoNnteodosio, yes, that works too, but the problem remains the same: dpkg-source wants to force us to use a given format for no good reason, and that format increases the maintenance work (and readability of the patch, too)10:56
nteodosioindeed10:56
oSoMoNhaving a patch broken down into separate commits from an upstream PR looks valid to me, dpkg-source shouldn't try to get in the way10:57
seb128there is a bit more context on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=81072011:31
ubottuDebian bug 810720 in libdpkg-perl "libdpkg-perl: check_patches_applied does not apply patches if the first patch emits a warning" [Normal, Open]11:31
seb128bottom line is that dpkg has limitations for $technical_reasons11:33
lissyxso there is no way, when running "snap run snapcraft" to pass some env variables that ends up in the build itself?11:36
seb128lissyx, what do you mean? you can use env variable in the snapcraft.yaml11:37
lissyxseb128, I want to pass some from when I call it, not burnt within the snapcraft.yaml itself11:37
lissyxI'm ok defining it within the yaml file, but I would need to change its value from outside11:37
seb128lissyx, it should respect any environment variable set on the machine running the cmd11:39
seb128https://git.launchpad.net/~mozilla-snaps/+git/firefox-snap/plain/snapcraft.yaml11:39
seb128there are a few examples in there11:39
lissyxthat was clearly not the behavior I was seeing when I tested last week11:39
seb128the problem is that if you build the snap on the infra you are not going to be able to set it11:39
seb128since the launchpad builders don't let you tweak the env11:40
lissyxthat's not a big deal11:40
lissyxnot for the moment11:40
lissyxlet me re-test11:42
lissyxseb128, I'm exploring how we could somehow get debug symbols and for now I'm testing by reproducing snap on taskcluster11:42
lissyxaccording to people in #snappy, for a same set of code source and running build within multipass it should be okay11:43
seb128great11:44
lissyxbeta and nightly are built on github? but stable is built on launchpad, will this hold?11:45
lissyx(I'm also open to references of how the build system on launchpad works)11:45
lissyxmy only experience for that is a 10 years old PPA repo, and it was working similar to debian's build system11:46
seb128lissyx, github is limited in the archs available, unsure if oSoMoN plan to move the others builds to launchpad12:02
lissyxthe build is broken locally because of gitlab.freedesktop.org being down :/12:11
lissyxseb128, interesting, I'm getting a new error now13:14
lissyx"unbound variable"13:23
lissyxno more unbound variable if I put it in build-environment13:49
oSoMoNlissyx, stable, esr and beta are built on launchpad, and nightly is built on github because launchpad didn't seem to like checking out the firefox hg repository (it would fail or time out too frequently to be usable)13:57
oSoMoNand yes, all builds are currently broken atm because of gitlab.freedesktop.org being down :/13:57
lissyx:)13:58
oSoMoN(it's been down for more than 2 days afaict)13:58
oSoMoNIIRC building a snap on launchpad uses the lxd backend, rather than multipass VMs13:59
lissyxok13:59
lissyxso it could even maybe not work13:59
lissyxMOZ_REPO=git://nas.home/m-c/ snap run snapcraft14:00
lissyxthis is not hnoored :/14:00
oSoMoNgitlab.freedesktop.org is back online \o/15:17
* oSoMoN frantically hits retry on all failed builds15:18
RastersoftHi all16:47
RastersoftI'm having an odd problem: I'm using AutoAR from Javascript, and to uncompress an encrypted file, I must hear the "request-passphrase" signal and return there the password16:49
RastersoftThe problem is that AutoAR seems to not receive the password16:49
RastersoftI even compiled it manually in my system, adding a g_print() before and after sending the signal, and showing the password returned, but it is always NULL16:49
RastersoftAnd what is even more odd: it is like the Javascript callback is being called AFTER the signal has been emitted and processed (which would explain the bug, but I presumed that the signals were synchronous...)16:50
RastersoftAre signals emitted from C and processed in GJS asynchronous?16:51
Rastersoft(they shouldn't, because in that case, "delete-event" couldn't be blocked, but...)16:52
RastersoftOps... this was for #gjs...16:53
lissyxjamesh, was there any follow up discussion to https://forum.snapcraft.io/t/collecting-debug-symbols/7017/11 ?17:34
seb128lissyx, James is in Australia, you have a better chance to catch him in european morning17:51
seb128but afaik there was no real work since on that17:51
seb128kenvandine might also know about the status17:51
lissyx:(18:16
KGB-2ghex tags 16c4d8f Sebastien Bacher upstream/42.3 * Upstream version 42.3 * https://deb.li/58DD19:27
KGB-0ghex upstream/latest fe2e226 Sebastien Bacher * pushed 7 commits (first 5 follow) * https://deb.li/3xnVz19:28
KGB-0ghex upstream/latest e94a8ff Logan Rathbone src/main.c * main: Quick hotfix to workaround gtk #4880 * https://deb.li/cxjl19:28
ubottuIssue 4880 in GNOME/gtk "Keyboard focus automatically moves from the filename entry to the file list widget when typing a letter" [Opened] https://gitlab.gnome.org/GNOME/gtk/-/issues/488019:28
KGB-0ghex upstream/latest 9db17f3 Logan Rathbone src/configuration.c * config: Add GNOME 42+ compatibility for dark mode * https://deb.li/3GIvI19:28
KGB-0ghex upstream/latest cfd6ca8 Logan Rathbone src/configuration.c * config: Fetch dark settings from portal if possible * https://deb.li/3wDRE19:28
KGB-0ghex upstream/latest 25a253f Logan Rathbone src/gtkhex.c * widget: Properly update highlights upon resize * https://deb.li/itvne19:28
KGB-0ghex upstream/latest ddc6eca Logan Rathbone src/findreplace.c * findrep: Remove spurious g_object_ref() call. * https://deb.li/z7D19:28

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