Executing a snap from the command line


I’ve installed a snap called todoist-thibaut on Ubuntu 18.04.2 with GNOME 3.28.2. When I display the information about the snap, it lists the command todoist-thibaut.todoist to execute this snap from the command line. I can launch the app from the GUI just fine, but I am not able to execute it with the given command:

$ todoist-thibaut.todoist                                                                                                                                                                  
zsh: command not found: todoist-thibaut.todoist

I’ve contacted the author of the snap, who replied that the command works on his machine with 18.04, but has no clue why it would not work on mine. Could you please help me troubleshoot this issue?


Is /snap/bin/ in your $PATH?
Does it work if your shell is bash not zsh?

@popey Of course, it was not in the $PATH. Thanks! Would it be possible for the command to be available after the snap installation without this extra manual step?

It should be in the path.

For me, the snapd package installs /etc/profile.d/apps-bin-path.sh which includes the necessary logic to set the path. Looks like zsh doesn’t use that?

We have a bug tracking this and a new PR was made by James just last week. So hopefully soon this problem will be perma-fixed. :slight_smile:

1 Like

Yes, that’s exactly the issue. Hopefully soon.:slight_smile:

Thanks for help!