[Pkg-utopia-maintainers] Bug#1027136: xdg-desktop-portal: User service is not stopped when uninstalling xdg-desktop-portal
Darshaka Pathirana
dpat at syn-net.org
Wed Dec 28 11:23:46 GMT 2022
Package: xdg-desktop-portal
Version: 1.8.1-1
Severity: normal
X-Debbugs-Cc: dpat at syn-net.org
Dear Maintainer,
after uninstalling xdg-desktop-portal I noticed that the
xdg-desktop-portal service was not stopped and could not be stopped
after the package has been removed:
❯ systemctl status --user xdg-desktop-portal
Warning: The unit file, source configuration file or drop-ins of xdg-desktop-portal.service changed on disk. Run 'systemctl --user daemon-reload' to reload units.
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; bad; vendor preset: enabled)
Active: active (running) since Sun 2022-11-27 02:24:45 CET; 1 months 0 days ago
Main PID: 26406 (xdg-desktop-por)
Tasks: 6 (limit: 18880)
Memory: 49.6M
CPU: 13min 24.337s
CGroup: /user.slice/user-1000.slice/user at 1000.service/app.slice/xdg-desktop-portal.service
└─26406 /usr/libexec/xdg-desktop-portal
Nov 27 02:24:45 executor xdg-desktop-portal[26406]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Nov 27 02:24:45 executor xdg-desktop-portal[26406]: No module "libpipewire-module-adapter" was found
Nov 27 02:24:45 executor xdg-desktop-portal[26406]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Nov 27 02:24:45 executor xdg-desktop-portal[26406]: No module "libpipewire-module-metadata" was found
Nov 27 02:24:45 executor xdg-desktop-portal[26406]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Nov 27 02:24:45 executor xdg-desktop-portal[26406]: No module "libpipewire-module-session-manager" was found
Nov 27 02:24:45 executor xdg-desktop-portal[26406]: core 0x55e09d2e9f10: can't find protocol 'PipeWire:Protocol:Native': Operation not supported
Nov 27 02:24:45 executor xdg-desktop-por[26406]: Failed connect to PipeWire: Couldn't connect to PipeWire
Nov 27 02:24:45 executor systemd[4802]: Started Portal service.
Nov 27 02:25:15 executor xdg-desktop-por[26406]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
❯ systemctl --user daemon-reload
❯ systemctl status --user stop xdg-desktop-portal
Unit stop.service could not be found.
● xdg-desktop-portal.service
Loaded: not-found (Reason: Unit xdg-desktop-portal.service not found.)
Active: active (running) since Sun 2022-11-27 02:24:45 CET; 1 months 0 days ago
Main PID: 26406 (xdg-desktop-por)
CPU: 13min 24.353s
CGroup: /user.slice/user-1000.slice/user at 1000.service/app.slice/xdg-desktop-portal.service
└─26406 /usr/libexec/xdg-desktop-portal
I did the following to fix that:
❯ sudo apt install xdg-desktop-portal
❯ systemctl --user daemon-reload
❯ systemctl stop --user xdg-desktop-portal
❯ systemctl status --user xdg-desktop-portal
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
Active: inactive (dead)
[...]
❯ sudo apt remove xdg-desktop-portal
I think (the) xdg-desktop-portal user service(s) should be stopped before
removing the package. Is that possible?
Some rational:
I do not use flatpak, but xdg-desktop-portal somehow got installed
(either through steam or through chromium) and I noticed the following
log entries:
Jun 12 15:44:06 executor systemd[5560]: Starting Portal service...
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: No module "libpipewire-module-protocol-native" was found
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: No module "libpipewire-module-client-node" was found
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: No module "libpipewire-module-client-device" was found
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: No module "libpipewire-module-adapter" was found
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: No module "libpipewire-module-metadata" was found
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: could not open /usr/lib/x86_64-linux-gnu/pipewire-0.3: No such file or directory
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: No module "libpipewire-module-session-manager" was found
Jun 12 15:44:06 executor xdg-desktop-portal[14190]: core 0x55f1cf513a80: can't find protocol 'PipeWire:Protocol:Native': Operation not supported
Jun 12 15:44:06 executor xdg-desktop-por[14190]: Failed connect to PipeWire: Couldn't connect to PipeWire
I also do not use pipewire, so I am not sure, if this messages are a bug itself.
I wanted to get rid of it, that is why I uninstalled xdg-desktop-portal.
And I only found the log messages because I wanted to fix the
"df fails on /run/user/1000/doc with "Operation not permitted"
problem:
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991378
* https://bugzilla.redhat.com/show_bug.cgi?id=1913358
* https://github.com/flatpak/xdg-desktop-portal/issues/553
Thx for maintaining xdg-desktop-portal!
I wish you a happy new year! All the best!
Best,
- Darsha
-- System Information:
Debian Release: 11.6
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable'), (99, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-19-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages xdg-desktop-portal depends on:
ii bubblewrap 0.4.1-3
ii dbus-user-session [default-dbus-session-bus] 1.12.24-0+deb11u1
ii dbus-x11 [dbus-session-bus] 1.12.24-0+deb11u1
ii fuse3 [fuse] 3.10.3-2
ii init-system-helpers 1.60
ii libc6 2.31-13+deb11u5
ii libfuse2 2.9.9-5
ii libfuse3-3 3.10.3-2
ii libgdk-pixbuf-2.0-0 2.42.2+dfsg-1+deb11u1
ii libglib2.0-0 2.66.8-1
ii libjson-glib-1.0-0 1.6.2-1
pn libpipewire-0.3-0 <none>
ii libsystemd0 247.3-7+deb11u1
xdg-desktop-portal recommends no packages.
xdg-desktop-portal suggests no packages.
More information about the Pkg-utopia-maintainers
mailing list