20.04 – Lost my firefox icon


I accidentally messed up my menu, and firefox now no longer appears when I search for applications, and I don’t have a way to mark it as ‘favourite’ when the application is running.

I’ve relegated to just start firefox with the terminal, but it’s a bit of a pain because I have to keep it open, and shows a lot of error output.

Is there a way to tell apt, or dpkg or some other tool to restore the icon?