Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1130530

Bug#1027136: xdg-desktop-portal: User service is not stopped when uninstalling xdg-desktop-portal

From Simon McVittie <smcv@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1027136: xdg-desktop-portal: User service is not stopped when uninstalling xdg-desktop-portal
Date 2022-12-28 19:20 +0100
Message-ID <FHJbX-dViT-7@gated-at.bofh.it> (permalink)
References <FHCNc-dRiB-1@gated-at.bofh.it> <FHCNc-dRiB-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1027136: xdg-desktop-portal: User service is not stopped when uninstalling xdg-desktop-portal Darshaka Pathirana <dpat@syn-net.org> - 2022-12-28 12:30 +0100
  Bug#1027136: xdg-desktop-portal: User service is not stopped when uninstalling xdg-desktop-portal Simon McVittie <smcv@debian.org> - 2022-12-28 19:20 +0100
    Bug#1027136: xdg-desktop-portal: User service is not stopped when uninstalling xdg-desktop-portal Darshaka Pathirana <dpat@syn-net.org> - 2023-01-04 16:30 +0100

csiph-web