/srv/irclogs.ubuntu.com/2019/11/20/#ubuntu-desktop.txt

=== dps_ is now known as dps
jibelmorning everyone05:14
oSoMoNgood morning desktoppers06:52
didrocksgood morning07:05
jibelsalut didrocks & oSoMoN07:09
didrockssalut jibel07:09
jibelmeh don't know how to use bzr anymore :/07:19
didrocksheh, using git too much :)07:28
didrocksjibel: when you got a sec: https://github.com/ubuntu/zsys/pull/2607:28
gitbotubuntu issue (Pull request) 26 in zsys "Fix many ineffectual assignments and typos" [Open]07:28
oSoMoNsalut jibel et didrocks07:31
didrockshey oSoMoN07:31
=== pstolowski|afk is now known as pstolowski
jibeldidrocks, merged08:29
didrocksthx!08:29
seb128gooood morning desktopers08:29
seb128salut les frenchies :-)08:30
didrockssalut seb12808:38
seb128lut didrocks, comment ça va aujourd'hui ?08:39
didrocksça va, et toi ?08:40
seb128ça va bien, entrain d'essayer de finir les formations :-/08:44
marcustomlinsongood morning desktoppers08:50
didrockshey marcustomlinson08:51
oSoMoNsalut seb12808:52
oSoMoNgood morning marcustomlinson08:52
seb128lut oSoMoN, hey marcustomlinson, how are you today?08:52
oSoMoNfeeling good, you?08:53
marcustomlinsonfeeling better thanks08:53
seb128I'm good thx08:54
seb128brb, changing location08:56
=== jdstrand_ is now known as jdstrand
seb128oSoMoN, just as a FYI, that librsvg build issue with rustcc 1.38 should be fixed by https://gitlab.gnome.org/GNOME/librsvg/commit/de26c4d815:34
seb128but it requires an update of the cssparser vendor copy included and I'm unsure how to properly do that15:34
seb128I downloaded a newer version, diffed the dir and added as a patch for testing but that fails because a .cargo-checksum is missing15:36
hellsworthgood morning folks15:39
oSoMoNseb128, thanks, I'll take care of it15:39
seb128hey Heather! how are you today?15:40
oSoMoNgood morning hellsworth!15:40
seb128oSoMoN, thx,  I'm not saying that it will fix the ppc64el issue though but let's see15:40
=== heather is now known as hellsworth
=== pstolowski is now known as pstolowski|afk
ijohnsonhi folks, I'm investigating slow startup performance in gnome snaps like gnome-calculator and I'm wondering what the purpose of the /usr/bin/gjs file being linked from the gnome-3-28-1804 content snap?20:28
hellsworthhmm good question, let me go take a look at the content snap20:28
ijohnsonSpecifically, I'm wondering:20:29
ijohnson1. can this file instead be located at /snap/gnome-calculator/current/usr/bin/gjs instead of /usr/bin/gjs?20:29
ijohnson2. that file in gnome 3.28 1804 content snap is a symlink to gjs-console, will it always be a symlink like that or could gjs point to something else like gjs-console2 ?20:29
ijohnsonthanks hellsworth20:30
hellsworthwhere do you find gjs being linked? i mean where do you see this /usr/bin/gjs?20:31
ijohnsonhellsworth: it's in the gnome-3-28-1804 content snap at /snap/gnome-3-28-1804/current/usr/bin/gjs20:31
ijohnsonerr that's the source20:32
ijohnsonit's being used in a layout in the gnome-calculator snap like this:20:32
ijohnsonhttps://www.irccloud.com/pastebin/ZfgDkUNp/20:32
ijohnsonwhat that layout amounts to in the snap is that a symlink shows up at /usr/bin/gjs which points to `$SNAP/gnome-platform/usr/bin/gjs`20:34
ijohnson(also sorry I had a typo in that snippet I pasted above, I updated it20:34
hellsworthcan you point me to the snapcraft yaml you're looking at? If I look at the gnome-calculator snapcraft in master and then do `snapcraft expand-extensions` there is no gjs mentioned: https://gitlab.gnome.org/GNOME/gnome-calculator/blob/master/snap/snapcraft.yaml20:38
hellsworthso i'm wondering how gjs got in there20:38
sarnoldijohnson: this is wild-guess territory as I don't know much about any of these tools -- my guess is this is to allow all the gnome snaps to share the same javascript interpreter, so that you don't have to have a dozen different JS interpreters loaded at once, but can share the memory for these processes (SHR column in top)20:39
hellsworthhmm that would make sense20:40
ijohnsonsarnold: yes that makes sense, my question is more about why it needs to be mounted at /usr/bin/gjs and not at $SNAP/usr/bin/gjs or even just at $SNAP/gnome-platform/usr/bin/gjs20:42
ijohnsonhellsworth: I just ran `snap download gnome-calculator` and am looking at the file `meta/snap.yaml` from the snap20:42
ijohnsonunsquashed with `unsquashfs gnome-calculator_544.snap`20:43
sarnoldijohnson: hmm. compounding my guesses at this point, in case something within the application tries to use the interpreter in a funny fashion? maybe libraries to spawn different things would call gjs directly through its well-known-location?20:43
ijohnsonsarnold: yeah that is usually why folks use layouts, but it's unfortunate here because this layout leads to 500-1000ms of snap-update-ns setting up various mounts20:44
ijohnsonhellsworth: indeed the snapcraft.yaml at that gitlab repo looks much different from what's on stabl in gnome-calculator indeed20:44
ijohnsonhellsworth: looks like gnome-calculator edge has the same as stable basically20:46
sarnoldijohnson: ouch :( that's really painful for an interactive app.20:46
sarnoldnot a big deal for IOT usecases, but .. ouch.20:46
ijohnsonsarnold: yes, hence why I'm looking into it :-|20:46
sarnoldijohnson: maybe snapd could pre-create all the namespaces when snaps are installed or when snapd is started, and reuse those namespaces for execution?20:47
ijohnsonthe namespaces do get re-used for subsequent launches, but for the first launch either right after install or first launch after boot20:47
ijohnsonfor those cases we have to create these mounts20:48
hellsworthwell gjs is placed there because of this commit: https://github.com/snapcore/snapcraft/commit/55bfb2dfcf5f604ee2ebbf3970a4fd846b02177120:52
hellsworthi don't know why this was added tbh though20:54
ijohnsonhellsworth: thanks for that pointer, this at least gives me a test case I can look at for why the gjs binary is needed at all, because gnome-calculator doesn't seem to need it at all20:56
marcustomlinsonnice find hellsworth20:56
marcustomlinsonmakes sense to me now why this doesn't make sense to me now :P20:57
hellsworthlol20:57
sarnoldlol20:58
* ijohnson be back in a bit21:00
hellsworthhttps://github.com/snapcore/snapcraft/commit/55bfb2dfcf5f604ee2ebbf3970a4fd846b021771#r3605800721:01
hellsworthmaybe the commiter can comment on why gjs was added. it looks very deliberate so there must have been some strong reason21:01
hellsworthand that reason can be weighed with the 500-1000ms expense21:01
kenvandinegnome-characters could use it21:06
kenvandineBut many other gjs apps21:06
kenvandineIt's for convenience21:07
kenvandineMost gjs hard code the interpretor path for gjs21:07
kenvandineSo all gjs have to be patched without the layout21:08
kenvandineNot just using the content snap21:08
kenvandineEven trying to bundle gjs, they still needed patching21:08
kenvandineijohnson: ^^21:09
ijohnsonkenvandine: hmm that's unfortunate, is this a script type situation like with python paths in the shebang where snapcraft could autonatically fix the location of gjs to somewhere else or even better just to search on $PATH?21:22
fidenciopeople, we'd like to update the GNOME Boxes' recommended downloads so it shows the latest ubuntu release21:24
fidenciohowever, in order to so, I really would need a review on https://gitlab.com/libosinfo/osinfo-db/merge_requests/5421:24
gitbotlibosinfo issue (Merge request) 54 in osinfo-db "ubuntu: Add 19.10 entry" [Opened]21:24
fidenciowould be possible to have someone from canonical to take a look at that and tell me that I'm not missing something?21:24
hellsworthjbicha: ^^21:26
hellsworthand didrocks isn't online atm21:26
fidenciohellsworth: I've marked them on the MR when I opened it (a few weeks ago)21:27
hellsworthi know but maybe they forgot so maybe it's time to ping them again :)21:27
fidenciohellsworth: let's hope they see it (if not, I'll ping Didier Tomorrow on our timezone)21:28
hellsworthgood plan21:29
fidenciohellsworth: thanks for the help!21:31
hellsworthmarcustomlinson: i finally got around to testing cherrytree with gtk2 stuff like gimp has and it doesn't look any different than it did when i was using the gnome extension22:24
hellsworthhttps://github.com/hellsworth/cherrytree/tree/add-snap22:25
hellsworthi really just don't know why the snap package looks different from the deb22:25
hellsworthany thoughts you have are welcome :)22:26
marcustomlinsonhellsworth: have you tried deleting ~/snap/cherrytree and re running22:29
hellsworthhmm no22:32
hellsworthi should try that :)22:32
hellsworthyeah even that didn't change things22:33
marcustomlinsonInteresting, I’m not at a computer right now, I can take a look tomorrow22:33
hellsworthno rush. i could use your expertise when you have time :)22:35

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