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.

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
2  
Try starting firefox in terminal without sudo. Do you see any errors? –  BryceAtNetwork23 Apr 24 '13 at 15:45

3 Answers 3

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. –  shootingstars Aug 12 '13 at 10:13
1  
I have none of these directories (i'm running on icewm) –  hithwen Apr 22 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
2  
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 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 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 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 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 answers, posting an answer now requires 10 reputation on this site.

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.