Is there a way to check if a specific snap is running (from the CLI)?
Let's say I've launched the Nextcloud Client, but I haven't seen the icon show up in the panel (Gnome Shell is finicky that way). How do I check to see if it is running (from the CLI)?
Is there a one-shot command for this?
(Please do not suggest using the system monitor, I know you can do that. But it requires that you check the properties of the running process to determine if it is a snap or not).
2
snap infoandsnap servicesare not options for GUI programs, as they only tell you about services (for instance: wekan, or nextcloud-server).
3 Answers
Try sudo snap info "name of snap" it should give the details of the snap and the services it's running.
Command snap services will give you the list of services, you can try
snap services | grep active 1 Run this command :
snap changes
Find status Doing ... (check the ID)
Run command
snap watch ID (ID of doing status)