M HYPE SPLASH
// news

Is there a way to check if a specific snap is running (from the CLI)?

By John Campbell

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).


snap info and snap services are not options for GUI programs, as they only tell you about services (for instance: wekan, or nextcloud-server).

2

3 Answers

Try sudo snap info "name of snap" it should give the details of the snap and the services it's running.

3

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)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy