[Pkg-utopia-maintainers] Bug#927907: flatpak directories not added to XDG_DATA_DIRS on Plasma + Wayland

Tobias Gruetzmacher tobias-debian at 23.gs
Sat Apr 16 12:27:06 BST 2022


Package: flatpak
Version: 1.12.7-1
Followup-For: Bug #927907

Hi,

unfortunatly, this is still an issue with Plasma. As previously noted,
this should be covered by the user-environment-generator, but it seems
Plasma isn't using those by default (or their result isn't propagated?),
since it's not integrated in the systemd user session. This can be
actived by:

kwriteconfig5 --file startkderc --group General --key systemdBoot true

This makes the environment generator work.
https://invent.kde.org/plasma/plasma-workspace/-/wikis/Plasma-and-the-systemd-boot
suggests distros not enable this by default, since it breaks drkonqi :(

Until this becomes the default, maybe add a file
/etc/xdg/plasma-workspace/env/flatpak.sh with the content:

    eval `GIO_USE_VFS=local flatpak --print-updated-env`
    export XDG_DATA_DIRS

This should add the missing configuration to all new Plasma sessions.

See also:
- https://userbase.kde.org/Session_Environment_Variables/en
- https://invent.kde.org/plasma/plasma-workspace/-/blob/master/startkde/startplasma.cpp#L284-301

Best regards, Tobias

-- Package-specific info:
Permissions of /usr/bin/bwrap:
-rwxr-xr-x 1 root root 67984 Feb 25 18:46 /usr/bin/bwrap
/etc/sysctl.d/*-bubblewrap.conf:
cat: '/etc/sysctl.d/*-bubblewrap.conf': No such file or directory
/usr/lib/sysctl.d/50-bubblewrap.conf:
# Enable unprivileged creation of new user namespaces in older Debian
# kernels.
#
# If this is not desired, copy this file to
# /etc/sysctl.d/50-bubblewrap.conf and change the value of this parameter
# to 0, then use dpkg-statoverride to make /usr/bin/bwrap setuid root.
#
# For more details see https://deb.li/bubblewrap or
# /usr/share/doc/bubblewrap/README.Debian
kernel.unprivileged_userns_clone=1
/proc/sys/kernel/unprivileged_userns_clone:
1
/proc/sys/user/max_cgroup_namespaces:
31361
/proc/sys/user/max_ipc_namespaces:
31361
/proc/sys/user/max_mnt_namespaces:
31361
/proc/sys/user/max_net_namespaces:
31361
/proc/sys/user/max_pid_namespaces:
31361
/proc/sys/user/max_time_namespaces:
31361
/proc/sys/user/max_user_namespaces:
31361
/proc/sys/user/max_uts_namespaces:
31361

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-6-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de:en_GB:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages flatpak depends on:
ii  adduser                         3.121
ii  bubblewrap                      0.6.1-1
ii  dbus [default-dbus-system-bus]  1.14.0-1
ii  libappstream-glib8              0.7.18-2
ii  libarchive13                    3.6.0-1
ii  libc6                           2.33-7
ii  libdconf1                       0.40.0-3
ii  libfuse2                        2.9.9-5
ii  libgdk-pixbuf-2.0-0             2.42.8+dfsg-1
ii  libglib2.0-0                    2.72.1-1
ii  libgpgme11                      1.16.0-1.2
ii  libjson-glib-1.0-0              1.6.6-1
ii  libmalcontent-0-0               0.10.4-1
ii  libostree-1-1                   2022.2-3
ii  libpolkit-agent-1-0             0.105-33
ii  libpolkit-gobject-1-0           0.105-33
ii  libseccomp2                     2.5.3-2
ii  libsoup2.4-1                    2.74.2-3
ii  libsystemd0                     250.4-1
ii  libxau6                         1:1.0.9-1
ii  libxml2                         2.9.13+dfsg-1
ii  libzstd1                        1.5.2+dfsg-1
ii  xdg-dbus-proxy                  0.1.3-1

Versions of packages flatpak recommends:
ii  ca-certificates                                      20211016
ii  desktop-file-utils                                   0.26-1
ii  gtk-update-icon-cache                                3.24.33-1
ii  hicolor-icon-theme                                   0.17-2
ii  libpam-systemd                                       250.4-1
ii  p11-kit                                              0.24.0-6
ii  policykit-1                                          0.105-33
ii  shared-mime-info                                     2.1-2
ii  xdg-desktop-portal                                   1.14.2-1
ii  xdg-desktop-portal-kde [xdg-desktop-portal-backend]  5.24.4-1
ii  xdg-user-dirs                                        0.17-2

Versions of packages flatpak suggests:
pn  avahi-daemon    <none>
pn  malcontent-gui  <none>

Versions of packages bubblewrap depends on:
ii  libc6        2.33-7
ii  libcap2      1:2.44-1
ii  libselinux1  3.3-1+b2

Versions of packages bubblewrap recommends:
ii  procps  2:3.3.17-7+b1

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list