I save links as files, rather the using bookmarks. I just drag the URL field from Firefox onto my desktop/folder.
Recently these stopped opening in Firefox, and started "opening" in Gedit. Even in Gedit, the file errors. The only way I can open these to even see the link is by using vim, having navigated to the file from the terminal.
There are a number of threads with similar problems, to solutions to which I have tried to no avail. <THIS THREAD> describes exactly my problem, but no solution is posted.
Example URL File Contents:
[Desktop Entry]
Encoding=UTF-8
Name=Link to Google
Type=Link
URL=http://www.google.com
Icon=text-html
Contents of my ~/.local/share/applications/mimeapps.list:
[Added Associations]
application/x-rpm=ubuntu-software-center.desktop;
x-scheme-handler/mailto=thunderbird.desktop;
message/rfc822=thunderbird.desktop;
application/x-extension-eml=thunderbird.desktop;
inode/directory=vlc.desktop;
application/pdf=inkscape.desktop;kde4-okularApplication_pdf.desktop;
text/x-python=vim.desktop;gedit.desktop;
application/pgp-keys=libreoffice-calc.desktop;
image/x-hdr=gedit.desktop;
text/plain=libreoffice-calc.desktop;
audio/x-vorbis+ogg=totem.desktop;
application/octet-stream=gedit.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
[Default Applications]
x-scheme-handler/mailto=thunderbird.desktop
message/rfc822=thunderbird.desktop
application/x-extension-eml=thunderbird.desktop
application/pdf=kde4-okularApplication_pdf.desktop
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=chromium-browser.desktop
x-scheme-handler/unknown=chromium-browser.desktop
audio/x-vorbis+ogg=totem.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
And here is a screen-shot of Gedit trying to open these:
Any help super appreciated, as this is driving me crazy.