/srv/irclogs.ubuntu.com/2022/11/23/#ubuntu-desktop.txt

oSoMoNgood morning desktoppers07:08
=== jose_ is now known as jose
seb128goood morning IRC09:29
ricotzhello seb128 09:35
seb128hey ricotz, how are you doing?09:39
ricotzseb128, sore muscles after some volleyball yesterday, otherwise all good :)09:42
ricotzhow are you?09:42
* ricotz will have to convince sil2100 to accept failing s390x autopkgtests for libreoffice/kinetic :\09:43
seb128ricotz, we don't support desktop on s390x so should be easy convincing :)09:51
seb128ricotz, I'm alright, I recovered from covid, might be able to go play tennis tonight if the rain stops early enough09:52
ricotzseb128, hehe09:52
ricotzseb128, oh, still playing outdoors09:53
seb128yes, the club I'm going to as very few indoor courts so most of the classes and games are outside even in winter...09:54
ricotzI see, great that this still works out, would be quite cold to do so here ;)09:57
seb128:)09:58
seb128ricotz, https://ubuntu-release.kpi.ubuntu.com shows the queues got smaller over the course of the week but they seem to move slowly at this point :/10:17
juliankSo, app switching is broken in lunar10:26
juliankAlt+Tab can't switch back to an open gnome terminal10:26
juliankThe terminal app always appears on the left side of the Alt+Tab popup10:27
juliankIn fact, Alt+Tab just tries to switch somewhere but always switches back to the same window10:27
juliankyou need to keep it pressed, wait for the switcher to pop up and then select10:28
julianki'm gonna try the proposed gnome-shell :D10:32
juliankhmm closing the terminal windows made it work again, how odd10:34
juliankstill need to investigate why chrome is not picked up10:34
juliankpossibly a chrome window manager notification issue10:34
juliankI have multiple PWAs installed in Chrome so when it opens a normal chrome window I guess it forgets to tell the WM about it?10:35
juliankhmm also on a fresh Chrome start10:36
juliankthe window is open but you don't see it in alt+tab10:36
juliankfor another 5s or so while there's the loading cursor10:36
juliankhmm10:56
juliankfirefox supports a --class argument, and gnome-shell recognizes correct wmclass but always groups it under firefox_firefox.desktop when launched via snap launcher; whereas if you launch the firefox binary in the snap directly it gets grouped correctly10:56
oSoMoNjuliank, mind filing a bug at https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox for that?11:34
julianklet me find my bugzilla account from 15 years ago sometime later :D11:35
oSoMoNthanks :)11:49
lissyxjuliank, there's a bug already about the launcher thing12:41
lissyxold one12:41
lissyxI thought it was fixed12:41
lissyxhttps://bugzilla.mozilla.org/show_bug.cgi?id=175115312:42
-ubottu:#ubuntu-desktop- Mozilla bug 1751153 in Core "[meta] No Firefox Nightly launcher in Gnome (Wayland apps can't set their icon themselves, a proper Nightly.desktop file is also required for non-packaged builds)" [--, Reopened]12:42
julianklissyx: different issue afaict12:56
lissyxare you sure?12:56
lissyxpeople mentions similar things12:56
juliankwhat happens there afaict is that StartupWMClass is missing from the desktop files12:57
juliankBut the matching of StartupWMClass to desktop only works when not invoked by snap12:57
lissyxwhich sounds a lot like the last comments on that bug12:58
juliankthe last comment talks about firefox-beta appearing as firefox because it sets the wrong class which is different12:59
juliankso they hide their firefox.desktop because they don't use it12:59
juliankWhat happens to me is that basically everything works fine as long as you don't put snapd in between13:00
juliankWhich I don't even think is a firefox issue, but a GNOME one13:00
juliank(also I'm still on X)13:01
juliankdue to libva accel in google chrome :D13:02
lissyxwell I never had any issue here13:03
lissyxbut I'm forcing wayland13:03
julianklissyx: so you have a custom firefox-foo.desktop with like /snap/bin/firefox -P foo --class firefox-foo --name firefox-foo and you can run that and the windows appear as Firefox (foo) instead of firefox?13:06
lissyxwait wait13:06
lissyxyou're adding new preconditions now13:06
juliankI'm not, no13:06
lissyxwell you are13:07
juliankNot really no13:07
lissyxchanging the class name13:07
lissyxI was referring to the default setup13:07
lissyxthere are still bugs open around handling of the class name13:07
lissyxsome are linnked from this bug13:08
juliank>  firefox supports a --class argument, and gnome-shell recognizes correct wmclass but always groups it under firefox_firefox.desktop when launched via snap launcher13:08
lissyxso it could also just be this13:08
juliankliterally talking about --class the whole time13:08
jbichagood morning13:08
juliank--name I added to maybe help but it doesn't13:08
lissyxthe desktop file we produce makes use of StartupWMClass13:09
juliankAlso if you open looking class, the wmclass is recognized correctly, but it matched it to the wrong desktop file (earlier?)13:09
juliankRight so my firefox-foo.desktop has --class firefox-foo, StartupNotify=true, StartupWMClass=firefox-foo13:09
juliankIf you replace the Exec=/snap/bin/firefox prefix with Exec=/snap/firefox/2088/usr/lib/firefox/firefox it works fine :D13:10
lissyxlike arounnd https://bugzilla.mozilla.org/show_bug.cgi?id=153005213:10
-ubottu:#ubuntu-desktop- Mozilla bug 1530052 in Core "WM class usage inconsistent" [Normal, Resolved: Fixed]13:10
lissyxjuliank, have you verified the --class arguments gets into firefox itself?13:10
lissyxI think about:support should help around that13:10
juliankwell yes, it appears in the wmclass field in gnome's looking glass after13:11
juliankso it gets in and back out again13:11
juliankit's all communicated *at some point*13:11
lissyxi'm checking something on my Windows VM, I should be able to hack on that soon13:12
lissyx(command line parsing is ... what it is)13:12
lissyxhttps://searchfox.org/mozilla-central/rev/05f486c76f84830041e51b7c68e3e697dc768454/widget/gtk/nsAppShell.cpp#32913:13
lissyxthis I dont like13:13
lissyxhttps://searchfox.org/mozilla-central/search?q=symbol:F_%3CT_mozilla%3A%3AXREAppData%3E_remotingName&redirect=false13:15
lissyxquite a few places13:15
lissyxoSoMoN, I clearly have a perf issue using multipass on core2213:16
lissyxbuild is too slow and it's failing likely because of lacking memory13:16
oSoMoNlissyx, why don't you use the default lxd provider?13:17
lissyxbecause I have to go through the whole setting up lxc ...13:18
lissyxand that's inconvenient because I dont really have time to take care of that right now13:18
lissyxjuliank, ok so default stuff is working fine, let me try to repro your issue13:56
lissyxjuliank, ok, indeed 100% repro14:01
lissyxjuliank, so I click on the "Firefox Foo" in the dock on the left and it matches the default Firefox's Snap icon, is that right?14:04
lissyxoSoMoN, ok bad news, using lxd fails with a weird python error14:10
lissyxzip set to automatically installed.14:10
lissyx'NoneType' object is not subscriptable14:10
lissyxWe would appreciate it if you anonymously reported this issue.14:10
lissyxNo other data than the traceback and the version of snapcraft in use will be sent.14:10
lissyxWould you like to send this error data? (Yes/No/Always/View) [no]: yes14:10
lissyx(and sentry send seems to have failed)14:10
lissyxso it's failingn there is nnothing in the logs :(14:19
oSoMoNlissyx, can you share the entire log somewhere?14:19
lissyxoSoMoN, there's really not more14:19
lissyxthat's the full log14:19
lissyxLaunching a container.14:19
lissyxWaiting for container to be ready14:19
lissyxWaiting for network to be ready...14:19
lissyx'NoneType' object is not subscriptable14:19
oSoMoNmeh, that's not really helpful14:21
lissyxno and I have to leave in 10 min14:22
julianklissyx: yeah I think so, if you alt+f2 and enter lg to get to looking glass, you'll notice the window has the correct WMClass but is associated with firefox_firefox.desktop15:00
julianklissyx: I've read peopel who say it works in other WMs, but gnome is too stupid, the idea being that firefox starts out as firefox, and then changes the class name, but gnome already categorized it under the firefox.desktop file by then15:02
juliankbut I've not done a lot of investigating :D15:03
=== Trevinho[m] is now known as Trevinho-[irc]
=== Trevinho-[irc] is now known as Trevinho[m]
=== Trevinho[m] is now known as Trevinho[IRC]
=== Trevinho[IRC] is now known as Trevinho[m]
lissyxjuliank, so it would definitively be a gnome-side issue?15:37
lissyxwould we have a way to confirm?15:37
juliankI do not know for sure, I don't do much desktop development, so I don't know if it looks at other properties that may be wrong?15:37
lissyxdo we have a way to track how gnome handles that?15:39
juliankthe thing the snapd launching does at the very least is put the processes into a snap.firefox.firefox.<uuid-ish?>.scope15:39
lissyxyou said  we change the class name, but I dont know exactly if it is what is happening in the code  for sure15:39
juliankwell otherwise gnome would'nt see a changed class name :)15:40
lissyxoSoMoN, got rid of the conntainer, restarting and now I get a proper stack15:40
lissyxlike https://paste.mozilla.org/neRUPNgx/raw15:40
lissyxhttps://forum.snapcraft.io/t/object-is-not-subscriptable/27894/3 :(15:42
lissyxhttps://bugs.launchpad.net/snapcraft/+bug/186950615:42
-ubottu:#ubuntu-desktop- Launchpad bug 1869506 in Snapcraft "snapcraft crashes if machine not connected to internet" [Undecided, Fix Released]15:42
lissyxI think my LXD setup is somehow messed up and this breaks its networking15:42
lissyxand from there I hit this known issue15:43
lissyxjuliank, i'm wondering if "--class" is handled by us or gtk ...15:46
lissyxespecially reading the comment https://searchfox.org/mozilla-central/rev/05f486c76f84830041e51b7c68e3e697dc768454/widget/gtk/nsAppShell.cpp#329-33515:46
KGB-0gnome-software ubuntu/master 397f4f5 Jeremy Bicha * pushed 4807 commits (first 5 follow) * https://deb.li/3QlPi15:54
KGB-0gnome-software ubuntu/master 99c5f85 Milan Crha lib/gs-external-appstream-utils.c * gs-external-appstream: Remove old files from legacy path * https://deb.li/14x015:54
KGB-0gnome-software ubuntu/master 40e5e8e Philip Withnall plugins/fwupd/gs-fwupd-app.c * Merge branch 'fwupd-release-urgency' into 'main' * https://deb.li/3VRm215:55
KGB-0gnome-software ubuntu/master 11d51c8 Philip Withnall lib/gs-utils.c * Merge branch 'wip/notify-pending-updates' into 'main' * https://deb.li/DLgs15:55
KGB-0gnome-software ubuntu/master 3b27009 Philip Withnall gs-install-appstream/gs-install-appstream.c lib/gs-external-appstream-utils.c lib/gs-external-appstream-utils.h * https://deb.li/3RoJU15:55
KGB-0Merge branch '1909-external-appstream-installer-leaves-old-files-behind-in-legacy-locations' into 'main'15:55
KGB-0gnome-software ubuntu/master e1e3263 Milan Crha gs-install-appstream/gs-install-appstream.c * https://deb.li/Tmln15:55
KGB-0gs-install-appstream: Ensure the installed file has correct permissions and owner15:55
KGB-0gnome-software signed tags 506f67e Jeremy Bicha ubuntu/43.1-2ubuntu1 * gnome-software Debian release 43.1-2ubuntu1 * https://deb.li/iipa715:55
julianklissyx: I don't think I'd worry about firefox so far15:56
juliank$ grep CLASS direct snap15:56
juliankdirect:WM_CLASS(STRING) = "Navigator", "foobar"15:56
julianksnap:WM_CLASS(STRING) = "Navigator", "foobar"15:57
juliankrunning xprop on the windows when launched directly vs by snap15:57
juliankwith --class foobar15:57
julianksame for both15:57
juliankOK so snapd produced a  firefox_firefox.desktop  without a WMClass that overrode everything, nice15:58
juliankI guess *something* is matching on the X-SnapInstanceName=firefox in there15:59
juliankthe firefox -> snap transition installs a hidden firefox.desktop that works16:01
=== Trevinho is now known as Trevinho[irc]
=== Trevinho[m] is now known as Trevinho
juliankOh and I found out that Chrome simply has broken startup notification, hooray16:05
juliankApparently it supproted startup notification with system title bars but also those seem gone16:08
lissyxok, still having issues with lxd :(16:16
Trevinhojuliank: sorry, I've been reading a bit but what's the whole problem? Matching a snap launched app with its desktop name?16:37
KGB-2gnome-initial-setup ubuntu/master 9c3fff6 Jeremy Bicha debian/changelog * releasing package gnome-initial-setup version 43.1-2ubuntu1 * https://deb.li/3zc0g16:37
juliankTrevinho: yes, the snap process is always matched to the snap desktop, so custom overrides with --class don't work16:38
juliankSo you can't create a separate firefox-foo.desktop where you do StartupWMClass=firefox-foo and pass --class=firefox-foo to firefox16:38
Trevinhojuliank: indeed because that's happening at mutter level, we figure out the desktop name from its group data16:38
juliankah ok now I found it16:39
juliankthat's bad16:40
Trevinhojuliank: that's expected, you should not be able to redefine an app that is in a container https://www.pastery.net/pcbnnk/16:40
Trevinhothat's the code leading to it16:40
Trevinhothe fact is that a desktop-id is not just a matching element, it also involves security (as per the portals), so we need to be sure that it always matches16:41
juliankthat is just wrong and means you can't snap chrome properly because all PWAs are broken16:41
lissyxlooks like i dont have ipv4 in the container?16:41
juliankBecause each PWA obviously needs to have its own desktop file with its own icon and its own window class so it appears as a separate app16:42
juliankAnd I'm kind of evaluating how the hell I could switch to firefox16:42
juliankbecause I run a bunch of PWAs in chrome, like Mattermost16:43
juliankI can't have them all in a random browser window16:43
TrevinhoI think it could be possible but requires some more discussion in how implement that for the portals16:43
juliankto be fair the PWA processes should be running in their own cgroup really :D16:44
juliankI don't know why I did not find this when grepping mutter code for snap earlier16:46
Trevinhoyeah, but I mean we can't provide the security model without having a way to define allowed desktop files we can match on... Probably a good way would be using desktop-id's as KDE does so basically group-app.id.desktop, so ideally you could have org.firefox-sub.app.desktop and then we allow that, by using different security rules though16:46
juliankmaybe I just grepped for scope16:46
Trevinhoit's all upstream so debian's codesearch should have been working16:47
juliankI had a local checkout I iterally ran grep on16:47
juliankbut must have searched wrong words16:47
juliankanyhow was getting confused for a time16:50
lissyxoSoMoN, https://forum.snapcraft.io/t/docker-snap-interferes-with-lxd-snap/13789/316:51
lissyxoSoMoN, stopping docker.service seems to work better ...16:51
lissyxbut that's going to be messy, tc runs on docker ...16:51
juliankSo I need to file bugs (1) against chrome because they advertise startupnotify, but don't notify; (2) against mutter to figure out how we can have "sub applications" [discuss on snapcraft.io?], (3) against something else I forgot16:51
juliankAnd complain again about firefox not supporting PWAs16:52
juliank:D16:52
juliankwell I did that yesterday16:52
julianknot that chrome is perfect, sometimes it sends me notifications for the PWA and they open in the browser instead ...16:53
Trevinhoin any case, I think it's the right approach in the snap context, I think it could be changed to use snap routine portal-info instead, and then rely on that to support other desktop files if any, but that's snapd work anyways16:53
julianksame issue applies to flatpak of course16:56
juliankanyway16:57
juliankI prefer the flatpak, it installs as Firefox instead of Firefox Web Bro...16:58
juliankthe snap so hipster bro16:58
lissyxogra, I dont want to be painful, but I'm hitting quite a lot of issues with snapcraft and lxd ...16:59
ogralissyx, well, i never do ... but then i also only use "snapcraft --destructive.mode" from a shell inside the container ... and i rarely build things at the size of firefox either 17:02
lissyxonce I stopped docker.service, the build moves further but I hit some issue with snap being unable to reach api.snapcraft.io17:03
ograah, i have only used docker twice in my life i think (... found it unusable and went back to doing my stuff in lxc)17:03
ograso not a prob i have ever hit 17:04
ograhttps://status.snapcraft.io shows there was some outage with api.s.io today ... pehaps bad timing ? 17:05
lissyx3 PM CET17:06
lissyxI was having issues like 5 minutes ago17:06
lissyxeither  there is a new one not yet reflected here, or something else is going on17:06
ograyeah17:07
ograprobably more docker mess with your network settings ? not sure what it does to that 17:08
lissyxlxd should have its own bridge17:08
lissyxI dont know why it would interfere with docker's one17:08
ograme neither ...17:08
juliankreported my chrome issue https://bugs.chromium.org/p/chromium/issues/detail?id=139306217:09
juliankI thought a couple months ago they moved to issuetracker.google.com but it's still there17:09
lissyxand I do need docker, so uninstalling is not really an option17:09
juliankyou could use podman?17:09
juliank:D17:09
lissyxand the way it fails is even different depending on core20 or core2217:10
juliankI like had 30 veth yesterday17:10
juliankI don't know why I think for me it's multipass going mad17:10
juliankeverything is messy :D17:11
ograwell, yeah, snapcraft has the very bad habid to re-invet itself completely for new base snaps so it executes completely different code paths for 20 and 2217:12
ogra*habit17:12
lissyxogra, https://paste.mozilla.org/ngrmLYQe/raw17:14
lissyxbut I'm running out of time for today sadly17:14
lissyxit was able to perform some apt steps earlier so network should be okay17:15
ograinside that container ? 17:16
lissyxhm ipv4 seems broken inside the container17:16
lissyxand api.snapcraft.io returns only v417:16
ograyeah 😞17:16
ograhmm, it seems to unset all proxy vaiables in the first lines ... do you have any proxy ? 17:18
ogra(in use that is)17:18
lissyxno17:20
lissyxI give up.17:21
lissyxthere's no masquerading rules in iptables nat table for the lxd network17:22
lissyxand packets are coming out of lxdbr017:22
ograif you shell into the container, can you "snap install core20" ? 17:23
lissyxno17:25
lissyxit's unable to contact snap store17:25
lissyxsince there's nno ipv4 connnectivity inside the container17:25
ograyeah, weird17:25
ogranot sure how you even got to such a state 17:26
lissyxI already did a bunch of "snap run snapcraft clean"17:26
lissyxsince I can ping the container from the host17:27
ograso weird17:27
lissyxright "iptables -L -v -n" sshows FORWARD in DROP policy and counter of packets dropped inncrements when I ping ...17:29
lissyxthat's it17:30
lissyxiptables --policy FORWARD ACCEPT17:30
lissyxnot the best solution, but will do for the moment.17:31
ograthere are a few debugging hints at https://discuss.linuxcontainers.org/t/containers-not-getting-ipv4/666817:32
lissyxannd now a new error ...17:35
lissyxhttps://paste.mozilla.org/s2AxSMCb/raw17:36
lissyxlikely the github issue :(17:39
lissyxogra, ok that last one was a temporary hiccup18:47
lissyxbuild from scratch finished in 33m18:47
ogra👍18:58
KGB-0gnome-shell ubuntu/kinetic 221a933 Jeremy Bicha * pushed 593 commits (first 5 follow) * https://deb.li/3qEpU19:14
KGB-0gnome-shell ubuntu/kinetic 6b30471 Jeremy Bicha debian/changelog * releasing package gnome-shell version 43~beta-1ubuntu2 * https://deb.li/30dZG19:14
KGB-0gnome-shell ubuntu/kinetic 28c2dc4 Jeremy Bicha (66 files in 19 dirs) * Merge tag 'debian/43_rc-1' into ubuntu/master * https://deb.li/3iQAn19:14
KGB-0gnome-shell ubuntu/kinetic 11bb28a Jeremy Bicha debian/ gnome-shell-common.postinst gnome-shell-common.preinst gnome-shell-common.prerm * Drop obsolete maintainer scripts handling Ubuntu theme migration * https://deb.li/i2zH719:15
KGB-0gnome-shell ubuntu/kinetic d6ed115 Jeremy Bicha debian/changelog * releasing package gnome-shell version 43~rc-1ubuntu1 * https://deb.li/U61l19:15
KGB-0gnome-shell ubuntu/kinetic 293a552 Jeremy Bicha debian/ control control.in * Suggest instead of depend on gnome-backgrounds * https://deb.li/m1ex19:15
KGB-0gnome-shell signed tags 8f14038 Jeremy Bicha ubuntu/43.1-0ubuntu1 * gnome-shell Debian release 43.1-0ubuntu1 * https://deb.li/3tExI19:15
KGB-2gtk3 ubuntu/master 4da562c Jeremy Bicha * pushed 12 commits (first 5 follow) * https://deb.li/aTth20:21
KGB-2gtk3 ubuntu/master b41b8e9 Simon McVittie debian/ control control.in * (Build-)Depend on libfontconfig-dev, not transitional libfontconfig1-dev * https://deb.li/3MKBc20:21
KGB-2gtk3 ubuntu/master d03dca1 Simon McVittie debian/patches/ (94 files) * d/patches: Update to upstream gtk-3-24 branch commit 3.24.34-204-g2fcc114870 * https://deb.li/Ihw720:21
KGB-2gtk3 ubuntu/master 98b1965 Simon McVittie debian/ control control.in tests/control * Build-/test-depend on dbus-daemon for dbus-run-session, instead of dbus * https://deb.li/3eGYd20:21
KGB-2gtk3 ubuntu/master 705fb86 Simon McVittie debian/changelog * Update changelog * https://deb.li/3kdrF20:21
KGB-2gtk3 ubuntu/master c8db199 Simon McVittie debian/ (7 files in 2 dirs) * Update patch series to 3.24.34-209-gf8d26e2acc * https://deb.li/iWNT120:21
KGB-0gtk3 signed tags a237edc Jeremy Bicha ubuntu/3.24.34-5ubuntu1 * gtk+3.0 Debian release 3.24.34-5ubuntu1 * https://deb.li/5JJd22:14

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