Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Where can I find the source of Nautilus? I'd like to play around with its source code and compile it. What's the best way to go about this? Obviously, it would be nice if I would easily be able to revert to the repository version if something bad happens :)

share|improve this question
    
git.gnome.org/browse/nautilus –  Anonymous Nov 13 '11 at 17:34
    
try this 'bzr branch lp:nautilus' then 'cd nautilus'... Happy coding :) –  blade19899 Sep 7 '12 at 12:20

3 Answers 3

up vote 10 down vote accepted

If you want use the same sources from the installed version you must get it from the Ubuntu repository.

First, from the softwate center, software sources, you need to enable the "source code" sources.

Then you can use apt-get source, to get the source, and dpkg-buildpackage, to build the package.

Check the following link for details. http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html

share|improve this answer
1  
This is a lot of fun to play around with. :) –  NightwishFan Nov 19 '10 at 10:21
1  
This guide is also helpful wiki.ubuntu.com/PackagingGuide/Complete –  Olivier Lalonde Nov 19 '10 at 10:24
apt-get source nautilus
share|improve this answer

Instructions for hacking on the Nautilus code are available here. Instructions on how to get the code and build it can be found on this page.

It seems you don't need to install it and can test it by running it from the source code directory. This means you can keep your installation while testing your modifications.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.