Accidently trashed Firefox icon. How to repair, so I can use Firefox? (Solved)

Moderators: 666philb, Forum moderators

Post Reply
Lordsyke
Posts: 53
Joined: Wed Feb 23, 2022 2:51 am
Has thanked: 3 times

Accidently trashed Firefox icon. How to repair, so I can use Firefox? (Solved)

Post by Lordsyke »

I just ment to remove the icon from desktop but instead sent it to trash bin and it took other stuff off wiith it it seems. After reprograming the path into the bin or whatever, Instead of launching it opens it up like it's a text document and just displays it's coding. How do I fix this? I want it to launch firefox.

User avatar
rockedge
Site Admin
Posts: 7163
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3243 times
Been thanked: 3047 times
Contact:

Re: Accidently partically deleted and corrupted"defaultbrowser" app upstream

Post by rockedge »

@Lordsyke Probably not too serious! We've all done that at some point. For the future there is a "Remove items" option on the right-click menu when hovering the mouse cursor on any of the desktop icons/shortcuts that will just remove the shortcut link and nothing else.

Lets find out what happened so we can fix it back up again. How did delete the desktop icon? Is it possible to look in the directory /usr/local/bin and locate the file defaultbrowser and open it in the geany editor?

Where are you now trying to start FIrefox from?

Lordsyke
Posts: 53
Joined: Wed Feb 23, 2022 2:51 am
Has thanked: 3 times

Re: Accidently partically deleted and corrupted"defaultbrowser" app upstream

Post by Lordsyke »

Yes it was previously deleted so I recreated "defaultbrowser" inside there. and I programmed this into it with the geany editor
#!/bin/sh
exec firefox "$@"

Thing is though, anytime I open this app program it like opens it up like you where trying to open or view a txt file. It's like it's set to automatically and solely open with geany and NOT whatever else it's suppose to use.

HerrBert
Posts: 375
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 22 times
Been thanked: 138 times

Re: Accidently partically deleted and corrupted"defaultbrowser" app upstream

Post by HerrBert »

Sounds like you have a script with no permission to execute ...
Just right click your script and set permission to executable via Properties or Permissions (a+x)

Lordsyke
Posts: 53
Joined: Wed Feb 23, 2022 2:51 am
Has thanked: 3 times

Re: Accidently partically deleted and corrupted"defaultbrowser" app upstream

Post by Lordsyke »

HerrBert wrote: Mon Jul 31, 2023 5:43 pm

Sounds like you have a script with no permission to execute ...
Just right click your script and set permission to executable via Properties or Permissions (a+x)

This fixed it thanks.

Post Reply

Return to “Fossapup64”