Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Firefox starts when I use sudo in the terminal, but not from the launcher. All the other apps work like a charm, just not Firefox. How can I fix this?

share|improve this question
Try starting firefox in terminal without sudo. Do you see any errors? – Aaron Apr 24 '13 at 15:45
When you try to start Firefox from the terminal, you'll see the error message. A proper solution is given here: – Nav Dec 27 '15 at 6:19

To fix this issue execute the following commands

chown -hR YOUR_USER .gnome2/
chown -hR YOUR_USER .gnome2_private/
share|improve this answer
I did not have a .gnome2_private/ directory, but changing ownership on the .gnome2/ seemed to do the trick. Thanks. Just as a note, this was only happening to me the first time I opened firefox after a reboot. If I closed it and then re-opened it via the launcher, it would work. – ryanjdillon Aug 12 '13 at 10:13
I have none of these directories (i'm running on icewm) – hithwen Apr 22 '14 at 13:59

Reset Firefox

Run this command in Terminal:

rm -r ~/.mozilla

NOTE : This will erase your bookmarks, history..etc.

share|improve this answer
Beware! This will delete all your bookmarks, browsing history, addons, and other customizations. – Aibara Iduas Apr 24 '13 at 17:19
This does not solve the issue – hithwen Apr 22 '14 at 13:56

chown did it. But you must run as root:

sudo -i

[type password]

chown -hR $USER .gnome2/

chown -hR $USER .gnome2_private/
share|improve this answer
In which directory? – hithwen Apr 22 '14 at 13:56
When you open terminal you are on your home folder by default. All that folders are inside of it, so you can only type as described above and replace "YOUR_USER" by your username. – Danilo Apr 29 '14 at 17:14
I am on Ubuntu 14.04 and sudo -i took me to the folder /root. I used the last 2 commands with the prefix sudo – Ziyan Junaideen May 3 '14 at 5:52

protected by Community Jun 6 '13 at 15:36

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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