LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 25
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 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 */
 
Old 04-26-2012, 12:49 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Thank you for sharing. Off the Zero Reply List.

Kind regards,

Eric
 
Old 12-22-2013, 02:47 PM   #3
donovanmuller
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:

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

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

[1] - http://forums.linuxmint.com/viewtopi...130582#p706599
[2] - http://wiki.mate-desktop.org/docs:gsettings
 
  


Reply

Tags
ubuntu



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 PM.

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