How do you get an application onto this list?

I’m working on a little program that’ll launch different browsers based on the content of the URL passed and I’d like to set it as the default Web app in this list (under Settings → Default Apps). I’ve written a .desktop file based on the epiphany.desktop file, but it doesn’t show up when I hit [Win]+o+p+e and it doesn’t show up in the default apps either, so I’m hoping that someone here can explain what I’ve done wrong.

Here’s the contents of the opening.desktop file:


<span style="color:#323232;">$ cat ~/.local/share/applications/opening.desktop 
</span><span style="color:#323232;">[Desktop Entry]
</span><span style="color:#323232;">Name=Opening
</span><span style="color:#323232;">GenericName=Web Browser
</span><span style="color:#323232;">Comment=Open links in the right browsers
</span><span style="color:#323232;">Keywords=web;browser;internet;opening;
</span><span style="color:#323232;">Exec=opening %u
</span><span style="color:#323232;">StartupNotify=true
</span><span style="color:#323232;">Terminal=false
</span><span style="color:#323232;">Type=Application
</span><span style="color:#323232;">Icon=/home/daniel/.local/share/applications/opening.png
</span><span style="color:#323232;">Categories=Network;WebBrowser;
</span><span style="color:#323232;">MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;multipart/related;application/x-mimearchive;message/rfc822;application/x-xpinstall;
</span>

Any criticisms are much appreciated!

Vincent,

Possibly you might need to run update-desktop-database first?

walrusintraining,

I’m completely unfamiliar with this, but maybe you need to add the version number to your desktop file?

walrusintraining,

Just to supplement, here is the firefox .desktop file

Tartas1995,

I am guessing in the ~/.local/share/applications/mimeapps.list file?

tom42,
@tom42@lemmy.world avatar

Right guess.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • gnome@discuss.tchncs.de
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Durango
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • ethstaker
  • JUstTest
  • InstantRegret
  • Leos
  • normalnudes
  • everett
  • khanakhh
  • osvaldo12
  • cisconetworking
  • modclub
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines