I have a snap package program running, but it refuses to stop, it still has its icon in the tray area, but no matter what I do it will not end. That made me think of these questions:
Is there a terminal command to see the current status (running, not running, etc.) of a snap package?
Is there a a terminal command to end a snap package, similar to the kill command?
A running snap is a process like any other. 1) The snap will appear among the other running processes in the output of
top
,htop
,System monitor
, etc. 2) You therefore can also use thekill
command or one of the tools mentioned to stop the snap like you can for other processes.In addition to vanadium's answer, snap has some additional management options (this may or may not be useful for your particular scenario, but for completeness sake I think it is worth mentioning).
Use
snap services
to lists all the services added to the system by the currently installed and enabled snaps.The
start
andstop
commands control whether a service should be currently running:Finally, if a snap has undesired behaviour, you can
disable
it and laterenable
it again. This avoids having to remove and reinstall them in the system: