sudo apt-get source nitrogen
sudo chown -R <myself> ~/nitrogen-1.5.1
#this is what you get with apt-get source in Ubuntu precise, but there is a newer version available at
http://projects.l3ib.org/nitrogen
now modify ~/nitrogen-1.5.1/src/SetBG.cc as follows:
(After this, nitrogen will probably not work with nautilus any more)
line 397:
old: gdk_atom_intern("NAUTILUS_DESKTOP_WINDOW_ID", FALSE),
new: gdk_atom_intern("CAJA_DESKTOP_WINDOW_ID", FALSE),
line 427:
old: if (strclass == std::string("Nautilus")) retval = SetBG::NAUTILUS; else
new: if (strclass == std::string("Caja")) retval = SetBG::NAUTILUS; else
line 463:
old: vecCmdLine.push_back(std::string("gconftool-2"));
new: vecCmdLine.push_back(std::string("mateconftool-2"));
line 467:
old: vecCmdLine.push_back(std::string("/desktop/gnome/background/picture_options"))
new: vecCmdLine.push_back(std::string("/desktop/mate/background/picture_options"))
line 470:
old: vecCmdLine.push_back(std::string("/desktop/gnome/background/picture_filename"));
new: vecCmdLine.push_back(std::string("/desktop/mate/background/picture_filename"));
(This will also work with nitrogen-1.5.2, but the line numbers are different)
Compiling:
sudo apt-get install libgtkmm-2.4-dev
cd ~/nitrogen-1.5.1
./bootstrap
CXXFLAGS="-O2" ./configure --prefix=/usr/local
make
sudo make install
/* I am no programmer, so if somebody finds an insidious bug in this procedure please reply
*/