How To Add Firefox to the Dash to Dock in Gnome SOLVED

Do I need to make another directory and put the firefox directory in the new directory?
No, I don't think you need to.
You have /opt/firefox/firefox/firefox in the argument in the Desktop Entry like this:
Exec=/opt/firefox/firefox/firefox.
Yes, because I noticed file roller created a folder, then extracted the contents into that one. That screenshot of firefox.desktop is the one you're using? Cause I see Exec=/usr/bin/firefox. And for the name, I see Firefox Browser.
 


Here is the Firefox.desktop file that I changed to reflect exactly what you have.

New Firefox.desktop.png


The Firefox.desktop in the above screenshot is the one I am using now.
 
Well, I just tried again, and it stills works for me here just fine.

1655206240870.png


1655206281790.png


1655206437170.png


This time I just "cded" to the folder created after extraction, then moved the firefox folder inside to /opt, updated the paths in the .desktop file accordingly, so they look now like
Code:
Exec=/opt/firefox/firefox
Icon=/opt/firefox/browser/chrome/icons/default/firefox.png
Notice that I renamed the icon
Code:
cd /opt/firefox/browser/chrome/icons/default/
then did
Code:
sudo mv default48.png firefox.png
searched for Firefox, and there it was, as you can see in the pic above. You could install menulibre - it's only 337kb - and check for errors in the desktop file.

1655207247301.png


However, I did it and no errors were found, only the icon was missing

1655208362582.png


1655208392284.png

1655208414182.png


The icon won't show on the dashboard, tho, but it does show in the "taskbar"

1655208588947.png


So, I don't know what else you can do, as you can see it worked for me here. The only 2 things I can think of right now are
1. The theme is Debian's default, while you're using sweet, right?
2. Maybe you could try removing Firefox-esr, so the system only sees the other one.
 
The Firefox.desktop in the above screenshot is the one I am using now.
And that /opt/firefox/firefox/firefox is correct in your system for both launcher and icon? Check that it is, and if it's not, update it accordingly.
 
Well, I just tried again, and it stills works for me here just fine.

View attachment 12871

View attachment 12872

View attachment 12873

This time I just "cded" to the folder created after extraction, then moved the firefox folder inside to /opt, updated the paths in the .desktop file accordingly, so they look now like
Code:
Exec=/opt/firefox/firefox
Icon=/opt/firefox/browser/chrome/icons/default/firefox.png
Notice that I renamed the icon
Code:
cd /opt/firefox/browser/chrome/icons/default/
then did
Code:
sudo mv default48.png firefox.png
searched for Firefox, and there it was, as you can see in the pic above. You could install menulibre - it's only 337kb - and check for errors in the desktop file.

View attachment 12875

However, I did it and no errors were found, only the icon was missing

View attachment 12876

View attachment 12877
View attachment 12878

The icon won't show on the dashboard, tho, but it does show in the "taskbar"

View attachment 12879

So, I don't know what else you can do, as you can see it worked for me here. The only 2 things I can think of right now are
1. The theme is Debian's default, while you're using sweet, right?
2. Maybe you could try removing Firefox-esr, so the system only sees the other one.
Yes, I'm using the sweet folders and the sweet icons.
I removed Firefox ESR completely 3 or so days ago.
 
I installed menulibre and got an error-
Not sure what I've done wrong.

Menulibre.png


Menulibre Error.png
 
My Firefox.desktop file is in /usr/share/applications/Firefox.desktop.

Do I need to move the Firefox.desktop file from where I have it?
 
Here is the full path:
/opt/firefox/browser/chrome/icons/default
Path to Icons.png
 
From what I can see, the error is telling you that the path: /opt/firefox/firefox/firefox is incorrect, so you need to address that first. I had it like that because, like I said before, Gnome's archive manager tool created an extra folder, but if you don't have that, then the path should be /opt/firefox/firefox for the launcher, and /opt/firefox/browser/chrome/icons/default/firefox.png for the icon.
 
Here is the full path:
/opt/firefox/browser/chrome/icons/default
Rename the icon to firefox.png, otherwise Gnome won't see it:
Code:
cd /opt/firefox/browser/chrome/icons/default/
then
Code:
sudo mv default48.png firefox.png
 
And that /opt/firefox/firefox/firefox is correct in your system for both launcher and icon? Check that it is, and if it's not, update it accordingly.
I edited the Firefox.desktop file to read exactly as you said.
The path is now /opt/firefox/firefox and the icon is now //opt/firefox/browser/chrome/icons/default/firefox.png.

FF.png

I looked in /opt and firefox is there, so that's good.
Now, menulibre says that the path is incorrect-

How can I find the path in the terminal if I am wrong?
 
Rename the icon to firefox.png, otherwise Gnome won't see it:
Code:
cd /opt/firefox/browser/chrome/icons/default/
then
Code:
sudo mv default48.png firefox.png
done-
FF icon moved.png
 
Using the terminal I found out that firefox is also in:

/usr/bin/firefox:

Code:
cora@debian:~$ whereis firefox
firefox: /usr/bin/firefox

User Bin.png
 
Should I remove firefox from /opt directory and change the path to /usr/bin/firefox?

Thanks for staying with me Tolkem. It's not easy having PTSD.
 
Using the terminal I found out that firefox is also in:

/usr/bin/firefox:
That's the symlink you created before, you can remove that. Launch Gnome's file manager in root mode, navigate to /usr/bin, locate firefox and delete it, or via terminal, cd to /usr/bin, and do
Code:
sudo rm firefox
choose whichever method you feel safer/more comfortable with.

Thanks for staying with me Tolkem. It's not easy having PTSD.

No prob bob. :)
 
Last edited:
Well, I edited my Firefox.desktop file to reflect exactly what you told me to do in post #29 and Firefox does not appear in the Applications Menu.
I'm out of ideas and you?
 
I just want to interject and point out that this is a pretty darned wholesome thread.

Carry on with your awesomeness.
 
Well guys I ended up having to install Firefox via flatpak.


After installation via the terminal Firefox was in the Gnome Applications Menu and I was able to add it to my favorites.
Adding it to my favorites placed Firefox in my Dock.

******Firefox is now in my Dash to Dock and I can launch it and it runs properly!******

I still would like to know why (after completing everything correctly the way Tolkem showed me) Firefox would not appear in the Gnome's Applications Menu.


FF 100.png
 
Glad you found a solution.
I still would like to know why (after completing everything correctly the way Tolkem showed me) Firefox would not appear in the Gnome's Applications Menu.
Yeah, me too.
 

Members online


Top