How can I view man pages for apps installed via snaps?

A 'band-aid' solution is to run the following from the command line:

export MANPATH=":/snap/tmux/current/share/man"

and then the command man tmux will work as well as all of your pre-exisiting man pages. Bear in mind that Ubuntu does not normally use $MANPATH and the standard man pages PATH can be seen as follows:

andrew@athens:~$ man -w
/usr/local/man:/usr/local/share/man:/usr/share/man

After running the 'band-aid' solution suggested above you should see:

andrew@athens:~$ man -w
/usr/local/man:/usr/local/share/man:/usr/share/man:/snap/tmux/current/share/man

This setting can also be placed in ~/.bashrc for permanency, remembering that after placing it there either log out and then back in or simply run: source ~/.bashrc

Not very satisfactory I must say, especially if each package has a man page in a different location. Let us hope that as standards solidify this will be less of a problem...

References:

  • AskUbuntu: How to find out where $MANPATH is set? An excellent AskUbuntu question and answer that describes what the MANPATH is and how to manipulate it.
  • Snappy installed manpages aren't accessible through man Launchpad bug where the issue of viewing snap man pages is discussed.
  • Support for man pages Further discussion this time from the snapcraft forums.