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.

With previous versions of Firefox I put my bookmarks.html file in /etc/firefox/profile and all new user accounts got automatically these bookmarks.

This folder doesn't exist on ubuntu 11.04; I tried to create it and put the bookmarks.html file in it but it doesn't seem to work...

share|improve this question
add comment

3 Answers 3

up vote 1 down vote accepted

As far as I understand, the default bookmarks are hidden in /usr/lib/firefox-n.n/omni.jar, you can modify this file to change default bookmarks for all users. Anyway this is not a good practise and I hope providing defaults will get easier in time.

A nicer way is to provide something in a default profile directory in order to let migration assistant do importing the bookmarks, when new Firefox profile is created. I think you have to provide profiles.ini in /etc/skel/.mozilla/firefox.

[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=5ge4y5n2.default
Default=1

And under /etc/skel/.mozilla/firefox/5ge4y5n2.default you can provide your files to be imported to a new profile, for example bookmarks.html or places.sqlite.

Only problem with this practise is that it allows only one Firefox profile per user and deleting the profile and creating new one loses the defaults.

share|improve this answer
    
Thank you very much, it works! –  jmehdi May 4 '11 at 12:53
add comment

Create /usr/lib/firefox/defaults/profile directory and put a customized bookmarks.html file inside.

It works on Ubuntu 12.04.

share|improve this answer
    
Does not work on ubuntu 13 –  Janning Jun 12 '13 at 9:30
add comment

What you can do is use one profile as a regular one, and the other profile folders as symbolic links to the actual profile.

share|improve this answer
    
How could I do that exactly? –  jmehdi Apr 30 '11 at 8:32
    
cd to the user dir where you want this to happen and then rm the bookmarksfile. You then make a symlink (ln -s /{dir}/{correct_bookmarksfile} {bookmarksfile}). You can even automate this by altering /etc/profile (that one gets fired when you create a new user) –  Rinzwind May 4 '11 at 11:23
add comment

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.