1

I have few firefox profiles, which are launched as different processes in the panel header. Like that:

enter image description here

How can I customize icon of the firefox in the process menu? I mean this icon:

enter image description here

2 Answers2

1

For the panel, you need this:

mkdir ~/.icons
mkdir ~/.icons/<your_icon_theme>
mkdir ~/.icons/<your_icon_theme>/32x32
mkdir ~/.icons/<your_icon_theme>/22x22
mkdir ~/.icons/<your_icon_theme>/16x16
mkdir ~/.icons/<your_icon_theme>/22x22/status
mkdir ~/.icons/<your_icon_theme>/16x16/status

Place your icon in

  • ~/.icons/<your_icon_theme>/32x32/status
  • ~/.icons/<your_icon_theme>/22x22/status
  • ~/.icons/<your_icon_theme>/16x16/status

The name of the image file must match the name that the image had in

  • /usr/share/icons/<your_icon_theme>/32x32/status
  • /usr/share/icons/<your_icon_theme>/22x22/status
  • /usr/share/icons/<your_icon_theme>/16x16/status.

Then restart your GNOME session.


For the launcher, you need this:

Create your custom desktop file for Firefox. The files in ~/.local/share/applications/ take precedence over the system directory /usr/share/applications/ if they have the same name.

cp /usr/share/applications/firefox.desktop ~/.local/share/applications/

Open the file with:

nano ~/.local/share/applications/firefox.desktop

Find the line that begins with Icon= and replace the value firefox with your prefered icon path, eg:

Icon=<my_firefox_icon_path>

If you want to use another image from your icon theme, then use the name of the file without extension, eg:

Icon=mozilla-firefox

The images of your icon theme are in this directory

/usr/share/icons/<your_icon_theme>
A.B.
  • 92,125
0

Edit the ‘firefox.desktop’

The ‘.desktop’ files are usually stored in “/usr/share/applications/”.

cd /usr/share/applications

sudo gedit firefox.desktop

Change the value of Icon

Icon=/path-to-your-icon

Now save and exit.

Open Firefox again from Dash then Enjoy :)

Maythux
  • 87,123