Use the default firefox.desktop
File,
Firefox is installed under snap. which means, /snap is the PATH to grab the Desktop file.
Find the correct Desktop file:
sudo find /snap/ -type f -name "firefox.desktop"
Example Output:
/snap/firefox/1232/firefox.desktop
/snap/firefox/1232/meta/gui/firefox.desktop
We just found the firefox.desktop
under the path: /snap/firefox/1232/
.
Copy it to your Desktop:
cp -v /snap/firefox/1232/firefox.desktop ~/Desktop/
Then, Right Click on it and Allow Launching.
Fix Icon Doesn't Appear
If the Icon doesn't appear, You just need to add the full path for the image file.
Note: The snap PATH number 1232
might change over time, so we have to copy the icon image to a different location:
cp -v /snap/firefox/1232/default256.png /usr/share/pixmaps/firefox.png
Edit firefox.desktop
from your Desktop, and change the line
From: Icon=/default256.png
To: Icon=/usr/share/pixmaps/firefox.png
chmod +x
– Nmath Sep 04 '20 at 16:33