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

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,531
Reaction score
1,260
Credits
11,192
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.
 


OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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.
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,531
Reaction score
1,260
Credits
11,192
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.
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,531
Reaction score
1,260
Credits
11,192
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.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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?
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,531
Reaction score
1,260
Credits
11,192
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.
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,531
Reaction score
1,260
Credits
11,192
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
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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?
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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.
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,531
Reaction score
1,260
Credits
11,192
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:
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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?
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,671
Reaction score
9,163
Credits
88,601
I just want to interject and point out that this is a pretty darned wholesome thread.

Carry on with your awesomeness.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,754
Credits
19,661
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
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,531
Reaction score
1,260
Credits
11,192
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