LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-25-2012, 05:54 AM   #1
Registered: Nov 2009
Posts: 141

Rep: Reputation: 23
How to modify the nitrogen wallpaper changer to work with caja file manager

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

now modify ~/nitrogen-1.5.1/src/ 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)


sudo apt-get install libgtkmm-2.4-dev
cd ~/nitrogen-1.5.1
CXXFLAGS="-O2" ./configure --prefix=/usr/local
sudo make install

/* I am no programmer, so if somebody finds an insidious bug in this procedure please reply */
Old 04-26-2012, 12:49 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294

Thank you for sharing. Off the Zero Reply List.

Kind regards,

Old 12-22-2013, 02:47 PM   #3
LQ Newbie
Registered: Dec 2013
Location: Johannesburg
Distribution: Mint
Posts: 3

Rep: Reputation: Disabled
This does not work for MATE 1.6.
mateconftool-2 has been dropped [1] in favour of dconf-editor/gsettings [2]

To get Nitrogen working on MATE 1.6, from line 463 (486 for 1.5.2) replace as follows:

    std::vector<std::string> vecCmdLine;
    vecCmdLine.push_back(std::string("org.mate.background picture-options"));
    vecCmdLine.push_back(std::string("org.mate.background picture-filename"));

    std::string strcolor = std::string( bgcolor.to_string() );
    vecCmdLine.push_back(std::string("org.mate.background primary-color"));
    vecCmdLine.push_back(std::string("org.mate.background secondary-color"));
Tested on Mint 16 MATE...

[1] -
[2] -



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] White desktop in Lubuntu Precise with caja file manager nokangaroo Linux - Desktop 0 03-02-2012 05:37 AM
Desktop Wallpaper Changer theunixwizard Linux - Software 12 04-24-2010 02:01 PM
Dynamic wallpaper changer in gnome WhiskeyTangoFoxtrot Linux - Software 1 10-14-2006 12:42 AM
FTP wallpaper changer verbose Linux - Software 0 08-05-2005 09:43 PM
Automated Wallpaper Changer davethegenius Linux - Software 3 04-02-2005 04:12 PM

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration