gtkfortune
gtkfortune is a a small gtk2-perl fortune frontend.
gtkfortune reads from the plaintext %-delimited fortune database files, unlike fortune itself, which reads from the binary .dat files. This greatly simplifies the inner workings of gtkfortune.
As of 1.0 it is possible to specify the FORTUNEDIR in the Makefile.
A screenshot of gtkfortune can be found here.
Releases
- gtkfortune-1.0 - 2009-08-09
- gtkfortune-0.1 - 2008-08-27
Installation
The Gtk2 perl bindings are required to run gtkfortune. It is possible to install them over cpan:
cpan -i Gtk2
Edit the Makefile to specify the installation prefixes (PREFIX and MANPREFIX), and specify the location of the fortune file (FORTUNEDIR).
Afterwards run make to install gtkfortune:
make install
Running make dist will create a tarball of the source code, and running make uninstall will remove the binary and man page.
Usage
Please see the manpage (man gtkfortune) for the full documentation
It is possible to specify which fortune database to read from by passing it to gtkfortune as the last argument:
gtkfortune /path/to/fortune/database
gktfortune accepts the follwing command line options:
-benables buttons for navigation-eshows extra information-oprints offensive fortunes-hprints a brief help message and exits-vprints the version and exits
Creating Databases
It is possible to create a custom fortune database by creating a file with fortunes separated by a lone % on a single line. To use the database with the original fortune command, create a .dat file by running:
strfile -r fortunedb fortunedb.dat
Please see the Notes file in the release tarball for further information.
License
gtkfortune is released under the MIT/X Consortium License. A copy of the license can be found in the release tarballs.