Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 6232  / 2 Years ago, wed, december 15, 2021, 2:02:42

After upgrading my distribution from 11.04 to 11.10 to 12.04 when starting a Firefox instance (from Alt+F2, not having a fixed launcher element) the icon displayed for it in the launcher and application switcher is the generic one (grey rectangle with a question mark in the middle). Why is that and how can I get the Firefox icon to display?


More From » 12.04

 Answers
3

Searching the web I found this lead pointing me in the right direction. Then I did the following:



  1. Lock icon to launcher (right-click on the launcher icon)



  2. In a terminal execute gsettings get com.canonical.Unity.Launcher favorites which displayed ['nautilus-home.desktop', '/home/<USER>/Desktop/ff.desktop']



  3. Identify relevant desktop file, in my case /home/<USER>/Desktop/ff.desktop



  4. Have a look at the file, less /home/<USER>/Desktop/ff.desktop and check where Icon* keys point to, e.g. Icon[en_US]=/usr/lib/firefox-10.0.2/icons/mozicon128.png


    My problem was that these keys pointed to locations that didn't exist any more.



  5. Use tab-completion to determine which Firefox directory actually exists, ls /usr/lib/fir[TAB][TAB], finding /usr/lib/firefox/



  6. Find a suitable icon in that directory find /usr/lib/firefox/ -name "*.png", finding /usr/lib/firefox/browser/icons/mozicon128.png



  7. Change all Icon pointers to the existing icon /usr/lib/firefox/browser/icons/mozicon128.png



  8. Close and restart Firefox, now with a Firefox icon in the launcher and application switcher




[#30881] Wednesday, December 15, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
learty

Total Points: 432
Total Questions: 115
Total Answers: 109

Location: Wallis and Futuna
Member since Tue, Mar 30, 2021
3 Years ago
;