icemc-2.0 deletes comment lines at the beginning of ~/.icewm/preferences. Given the default preferences file for IceWM, which looks like this, ...
--- BEGIN file ---
# preferences(1.2.16) - generated by genpref
# This file should be copied to /etc/icewm/ or $HOME/.icewm/ directory
# NOTE: All settings are commented out by default, be sure to
# uncomment them if you change them!
[...]
--- END file ---
... the result is the following:
--- BEGIN file ---
# This file should be copied to /etc/icewm/ or $HOME/.icewm/ directory
# NOTE: All settings are commented out by default, be sure to
# uncomment them if you change them!
[...]
--- END file ---
For test purposes, I added a few more comment lines to the beginning ...
--- BEGIN file ---
# This is a test comment for icemc-2.0
# And another test comment
# preferences(1.2.16) - generated by genpref
# This file should be copied to /etc/icewm/ or $HOME/.icewm/ directory
# NOTE: All settings are commented out by default, be sure to
# uncomment them if you change them!
[...]
--- END file ---
... and the result is the same:
--- BEGIN file ---
# This file should be copied to /etc/icewm/ or $HOME/.icewm/ directory
# NOTE: All settings are commented out by default, be sure to
# uncomment them if you change them!
[...]
--- END file ---
That is, all leading comment lines are deleted, which is bad - comments are usually there for a reason, especially if they are at the beginning of a config file. If the preferences file does not start with a comment line, everything is okay:
--- BEGIN file ---
# Note the blank line above!
# This is a test comment for icemc-2.0
# And another test comment
# preferences(1.2.16) - generated by genpref
# This file should be copied to /etc/icewm/ or $HOME/.icewm/ directory
# NOTE: All settings are commented out by default, be sure to
# uncomment them if you change them!
[...]
--- END file ---
The result is exactly as it should be:
--- BEGIN file ---
# Note the blank line above!
# This is a test comment for icemc-2.0
# And another test comment
# preferences(1.2.16) - generated by genpref
# This file should be copied to /etc/icewm/ or $HOME/.icewm/ directory
# NOTE: All settings are commented out by default, be sure to
# uncomment them if you change them!
[...]
--- END file ---
The enclosed patch fixes this problem.
Fix for deleted comment lines