Trent W. Buck wrote: > As at chromium 98.0.4758.102-1~deb11u1, > chromium works with xdg-desktop-portal, fuse, flatpak removed.
As at chromium 98.0.4758.102-1~deb11u1, I can reproduce the original "Trace/breakpoint trap" in sway, without removing anything. i.e. I don't think xdg-desktop-portal helped fix the original problem. Test script attached.
#!/usr/bin/python3 import subprocess import tempfile __doc__ = """ test chrome w/o fuse log in as "x", run "LANG=C.UTF-8 sway", type Alt+Return to open foot, run chromium, browse to https://example.museum/, Ctrl+S Enter to save. See that saving works even with xdg-desktop-portal/flatpak/fuse removed. NOTE: kvm's default geometry is 800x600 or something. GTK3's default save dialog does not fit. Try resizing the KVM window before lightdm starts. """ with tempfile.TemporaryDirectory() as td: subprocess.check_call( ['mmdebstrap', '--include=linux-image-generic,live-boot,chromium,sway,sway-backgrounds,swaybg,foot', f'--aptopt=Acquire::http::Proxy "http://localhost:3142"', '--customize-hook=chroot $1 adduser x --gecos x --disabled-password --quiet', '--customize-hook=chroot $1 adduser x sudo', '--customize-hook=echo x: | chroot $1 chpasswd --crypt-method=NONE', '--customize-hook=download vmlinuz vmlinuz', '--customize-hook=download initrd.img initrd.img', # I can't easily type Penguin key into a VM. # So switch it to Alt. '--customize-hook=chroot $1 sed -rsi s/Mod4/Mod1/ /etc/sway/config', # Remove things that chromium claims it needs but does not actually need. # '--customize-hook=chroot $1 dpkg --force-depends --purge xdg-desktop-portal xdg-desktop-portal-backend xdg-desktop-portal-gtk', # '--customize-hook=chroot $1 dpkg --force-depends --purge fuse libfuse2 fuse3 libfuse3-3', # '--customize-hook=chroot $1 dpkg --force-depends --purge bubblewrap flatpak', # '--customize-hook=chroot $1 dpkg --force-depends --purge libgnome-desktop-3-19', # Report which version of chromium we are running. '--customize-hook=chroot $1 dpkg-query -W chromium', 'bullseye', 'filesystem.squashfs'], cwd=td) subprocess.check_call( ['kvm', '-m', '2G', '--device', 'virtio-vga', '--kernel', 'vmlinuz', '--initrd', 'initrd.img', '--append', 'boot=live plainroot root=/dev/vda quiet', '--drive', f'file=filesystem.squashfs,format=raw,media=disk,if=virtio,readonly=on'], cwd=td)