At least version 1.2.2 of Mnemosyne does not save when it receives the TERM signal, when you shutdown / halt /stop your system. One way to fix that is to run
wmctrl first. The command line tool
wmctrl may not be on your (Slackware) system, but is available through slackbuilds.org and can be installed in a few seconds.
Adding an alias to your
~/.bashrc file for
halt is a simple way to utilize
wmctrl before halt.
alias halt='wmctrl -c "Mnemosyne - default"; sudo /sbin/halt'
wmctrl -l; you should check if it's the same on your system.
halted as root. If you like that, you should add the alias to the
.bashrcfile for root. To make your user be able to execute
haltwithout fuss, you execute
visudoas root (
sudo) and add (type
o) the line:
your-user-name ALL=(ALL) NOPASSWD: /sbin/halt
Mon Feb 27 11:27:57 CET 2012 (on Slackware 13)