[Pkg-utopia-maintainers] Bug#975710: flatpak: Starts gvfs-daemon when logging in as root
Mourad De Clerck
bugs-debian at aquazul.com
Wed Nov 25 12:55:28 GMT 2020
Package: flatpak
Version: 1.8.3-2
Severity: minor
Tags: patch
When I log into my machine with ssh as root, gvfs-daemon is indirectly started
by flatpak using DBUS activation, in root's systemd user session.
Maybe consider this patch for /etc/profile.d/flatpak.sh ?
--- flatpak.sh.orig 2020-11-24 13:01:00.000000000 +0100
+++ flatpak.sh 2020-11-25 13:40:09.055342009 +0100
@@ -5,7 +5,7 @@
(
unset G_MESSAGES_DEBUG
echo "${XDG_DATA_HOME:-"$HOME/.local/share"}/flatpak"
- flatpak --installations
+ GIO_USE_VFS=local flatpak --installations
) | (
new_dirs=
while read -r install_path
Thanks for your consideration,
-- Mourad DC
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.9.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages flatpak depends on:
ii adduser 3.118
ii bubblewrap 0.4.1-1
ii dbus 1.12.20-1
ii libappstream-glib8 0.7.17-1
ii libarchive13 3.4.3-2
ii libc6 2.31-4
ii libdconf1 0.38.0-1
ii libfuse2 2.9.9-3
ii libgdk-pixbuf-2.0-0 2.40.0+dfsg-7
ii libgdk-pixbuf2.0-0 2.40.0+dfsg-7
ii libglib2.0-0 2.66.3-1
ii libgpgme11 1.14.0-1+b1
ii libjson-glib-1.0-0 1.6.0-1
ii libmalcontent-0-0 0.9.0-2
ii libostree-1-1 2020.8-2
ii libpolkit-agent-1-0 0.117-1
ii libpolkit-gobject-1-0 0.117-1
ii libseccomp2 2.5.0-3
ii libsoup2.4-1 2.72.0-2
ii libsystemd0 246.6-5
ii libxau6 1:1.0.8-1+b2
ii libxml2 2.9.10+dfsg-6.2
ii libzstd1 1.4.5+dfsg-4
ii xdg-dbus-proxy 0.1.2-1
Versions of packages flatpak recommends:
ii desktop-file-utils 0.26-1
ii gtk-update-icon-cache 3.24.23-2
ii hicolor-icon-theme 0.17-2
ii libpam-systemd 246.6-5
ii p11-kit 0.23.21-2
ii policykit-1 0.117-1
ii shared-mime-info 2.0-1
ii xdg-desktop-portal 1.8.0-2
ii xdg-desktop-portal-gtk [xdg-desktop-portal-backend] 1.8.0-1
Versions of packages flatpak suggests:
ii avahi-daemon 0.8-3
pn malcontent-gui <none>
-- Configuration Files:
/etc/profile.d/flatpak.sh changed:
if command -v flatpak > /dev/null; then
# set XDG_DATA_DIRS to include Flatpak installations
new_dirs=$(
(
unset G_MESSAGES_DEBUG
echo "${XDG_DATA_HOME:-"$HOME/.local/share"}/flatpak"
GIO_USE_VFS=local flatpak --installations
) | (
new_dirs=
while read -r install_path
do
share_path=$install_path/exports/share
case ":$XDG_DATA_DIRS:" in
(*":$share_path:"*) :;;
(*":$share_path/:"*) :;;
(*) new_dirs=${new_dirs:+${new_dirs}:}$share_path;;
esac
done
echo "$new_dirs"
)
)
export XDG_DATA_DIRS
XDG_DATA_DIRS="${new_dirs:+${new_dirs}:}${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
fi
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list