[Pkg-utopia-maintainers] Bug#1027136: xdg-desktop-portal: User service is not stopped when uninstalling xdg-desktop-portal
Simon McVittie
smcv at debian.org
Wed Dec 28 18:11:20 GMT 2022
On Wed, 28 Dec 2022 at 12:23:46 +0100, Darshaka Pathirana wrote:
> ❯ systemctl status --user stop xdg-desktop-portal
> Unit stop.service could not be found.
This is the wrong command, hence the error message. Use:
systemctl --user stop xdg-desktop-portal.service
You can omit the .service extension as a shorthand, but you can't combine
status and stop in one command.
> I think (the) xdg-desktop-portal user service(s) should be stopped before
> removing the package. Is that possible?
Not really: maintainer scripts happen in the context of the overall system
(as root) and there is not really a good way to inject service-management
commands into user sessions. Other per-user services like PulseAudio,
Pipewire, gpg-agent and so on are not stopped when you remove them either.
smcv
More information about the Pkg-utopia-maintainers
mailing list