[RFC][PATCH] netsurf.desktop

François Revol revol at free.fr
Sun Apr 8 20:29:55 BST 2012


I started writing a .desktop file then I noticed there was one in debian/...

Seeing what epiphany and iceweasel have in theirs, I'd suggest the
following patch:
- add WebBrowser (it is one) and GTK (it uses it) categories, like epiphany.
- add the URL schemes as fake MIME types, as both do.

BTW, I do also have a
/usr/share/applications/epiphany-newtab.desktop
here, which opens urls in a new tab on the current window.
Not sure which changes would be needed to have NS tell an existing
instance to add a tab in the GTK code though.

François.

Index: debian/netsurf/netsurf.desktop
===================================================================
--- debian/netsurf/netsurf.desktop	(révision 13834)
+++ debian/netsurf/netsurf.desktop	(copie de travail)
@@ -62,7 +62,7 @@
 X-MultipleArgs=false
 Type=Application
 Icon=netsurf.png
-Categories=Network;
-MimeType=text/html;text/xml;application/xhtml+xml;application/xml;image/gif;image/jpeg;image/png
+Categories=Network;GTK;WebBrowser;
+MimeType=text/html;text/xml;application/xhtml+xml;application/xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
 StartupWMClass=NetSurf-bin
 StartupNotify=true



More information about the netsurf-dev mailing list