Simple and dirty patch for Molden, the ancient chemical/molecular viewer. Allows to close Molden without the need to click the annoying Skull Icon. Works for both the control panel and main window.
Tested on Molden 7.3 and gcc/gfortran 8.5/9.4/11.4 on a Linux machine.
No warranty at all, although it is so simple that it should not break anything.
- Download the source code of Molden and untar it
- Apply the patch:
patch src/xwin.c noskull.diff
- Compile Molden
- Run Molden
- Close Molden without the skull icon!!!
If your gfortran compiler is 10 or higher, you may need to add -fallow-argument-mismatch
to the FFLAGS
in the makefile
before the compilation. This is an issue of molden itself and independent of the patch.
wget https://ftp.science.ru.nl/Molden/molden7.3.tar.gz
tar -xzf molden7.3.tar.gz
cd molden7.3
curl https://raw.githubusercontent.com/boneta/molden-noskull-patch/master/noskull.diff | patch src/xwin.c
make
./bin/molden