This works! I downloaded Debian Bullseye Gnome, played a bit with that from a live USB, and managed to get that working.
Bash:
[Desktop Entry]
Version=1.0
Name=Firefox
GenericName=Web Browser
Comment=Browse the World Wide Web
Keywords=Internet;WWW;Browser;Web;Explorer;
Exec=/opt/firefox/firefox/firefox
Icon=/opt/firefox/firefox/browser/chrome/icons/default/firefox.png
Terminal=false
X-MultipleArgs=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
StartupNotify=true
StartupWMClass=Navigator
Categories=Network;WebBrowser;
Actions=new-window;new-private-window;
Copy and paste exactly that, don't change anything, not even the empty line (yeah, I'm serious) Move Firefox folder to
/opt, and make sure whether the path it's like that, or just
/firefox/firefox, since I noticed that when whatever tool gnome uses to extract files, it created the folder
firefox-101.0 (which I renamed just firefox) and placed the firefox folder inside that one, so you could also check in your current firefox.desktop file, as the error might be there; the path isn't correct.
There's one thing I couldn't figure out, tho; in the activities/applications dashboard, firefox's icon doesn't show.
By the way, if you haven't already, but want to remove firefox ESR, follow this:
1.
2.
3.
Place the following content into bogus-browser file:
Bash:
source: bogus-browser
Section: misc
Priority: optional
Standards-Version: 3.9.2
Package: bogus-browser
Version: 1.0
Maintainer: Your Mom
Provides: firefox, firefox-esr, epiphany
Architecture: all
Description: placeholder yah
4. Then
Code:
equivs-build bogus-browser
5.
Code:
sudo dpkg -i bogus-browser_1.0_all.deb
6.
Code:
sudo apt purge equivs && sudo apt autoremove
7.
8. Remove firefox ESR
Code:
sudo apt remove --purge firefox-esr
If you wonder why all that, it is because if you try to simply remove without "installing" bogus-browser, apt will try to install epiphany to satisfy some dependency. I had to deal with that when tried Bullseye LXQT, and found those instructions in the old antix forum, thought I have it bookmarked, and if I did, I couldn't find it, luckily, I had copied/pasted to a file and saved for future use.
