Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

man htop return nothing for htop installed as snap #11

Open
N0rbert opened this issue Jan 8, 2021 · 4 comments
Open

man htop return nothing for htop installed as snap #11

N0rbert opened this issue Jan 8, 2021 · 4 comments

Comments

@N0rbert
Copy link

N0rbert commented Jan 8, 2021

Steps to reproduce:

  1. Have Ubuntu 20.04 LTS installed, without deb-version of htop
  2. Run snap install htop, wait it to finish
  3. Run man htop

Expected results:

  • man htop shows man-page

Actual results:

  • man htop does not show man-page

Bug at launchpad: https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1910790 .

@maxiberta
Copy link
Owner

maxiberta commented Jan 8, 2021

Indeed, the lack of man pages support in snaps can be quite annoying. Unfortunately, individual snaps can do nothing about it, as it needs to be supported by snapd (here's the bug report). The good news is that a fix has been discussed and designed at the snapcraft forum. Edit: there's actually an old PR under review, but it's blocked :-(.

Will leave this issue open as a reminder to add a proper man page whenever the feature lands in snapd.

Thanks for your report!

@ameinild
Copy link

ameinild commented Feb 5, 2021

Maxiberta, I don't quite agree with your sentiment.

You could put the manpages inside the snap in /snap/htop/current/share/man
A user can then do the following in .bashrc (or another file):
export MANPATH=":/snap/htop/current/share/man"

And then the manpages work. But since you didn't even include the manpages inside the snap, this workaround does not work. The workaround works on other snaps, like nano, tmux etc.

@maxiberta
Copy link
Owner

@ameinild fyi, the man page is included in the snap: /snap/htop/current/usr/local/share/man/man1/htop.1.

@ameinild
Copy link

ameinild commented Feb 5, 2021

Ok thanks for clearing that up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants