otsaloma / nfoview

Viewer for NFO files
https://otsaloma.io/nfoview
GNU General Public License v3.0
140 stars 13 forks source link
gtk nfo python

NFO Viewer

Packages Flathub

NFO Viewer is a simple viewer for NFO files, which are "ASCII" art in the CP437 codepage. The advantages of using NFO Viewer instead of a text editor are preset font and encoding settings, automatic window size and clickable hyperlinks.

Installing

Linux

Packages

NFO Viewer is packaged for most of the popular distros, so easiest is to install via your distro's package management. If not packaged for your distro or you need a newer version than packaged, read below on how to install from Flatpak or the source code.

Flatpak

Stable releases are available via Flathub.

The development version can be installed by running command make install under the flatpak directory. You need make, flatpak-builder and gettext to build the Flatpak.

Source

NFO Viewer requires Python ≥ 3.8, PyGObject ≥ 3.0.0 and GTK ≥ 4.0. You also need a font that supports the kinds of glyphs commonly used in NFO files: Cascadia Mono is a good choice and used by NFO Viewer by default, if available. During installation you will also need gettext. On Debian/Ubuntu you can install these with the following command.

sudo apt install fonts-cascadia-code \
                 gettext \
                 gir1.2-gtk-4.0 \
                 python3 \
                 python3-dev \
                 python3-gi

Then, to install NFO Viewer, run commands

make PREFIX=/usr/local build
sudo make PREFIX=/usr/local install

Windows

Windows installers are no longer built due to bad tooling, bad results, lack of time and lack of motivation. The latest version available for Windows is 1.23.