summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-12-06 14:03:06 +0100
committerKarel Kočí <cynerd@email.cz>2017-12-06 14:03:06 +0100
commit16a7bd56fec84040d1c9b6d26e9ee42b87476a21 (patch)
tree924cfa901cc250a5c2c6496e4d0b3d604f6374f1
parenta5559dceb037457b1ceaee02132d59812864ed98 (diff)
downloadsurf-7c71e2100c763fe430b690fb28f06c2a09cc11fe.tar.gz
surf-7c71e2100c763fe430b690fb28f06c2a09cc11fe.tar.bz2
surf-7c71e2100c763fe430b690fb28f06c2a09cc11fe.zip
Add desktop filev2.0.3
-rw-r--r--Makefile6
-rw-r--r--surf.desktop12
2 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4b1e371..45274aa 100644
--- a/Makefile
+++ b/Makefile
@@ -59,11 +59,17 @@ install: all
@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
@sed "s/VERSION/$(VERSION)/g" < surf.1 > $(DESTDIR)$(MANPREFIX)/man1/surf.1
@chmod 644 $(DESTDIR)$(MANPREFIX)/man1/surf.1
+ @echo installing desktop file to $(DESTDIR)/usr/share/applications
+ @mkdir -p $(DESTDIR)/usr/share/applications
+ @cp -f surf.desktop $(DESTDIR)/usr/share/applications/surf.desktop
uninstall:
@echo removing executable file from $(DESTDIR)$(PREFIX)/bin
@rm -f $(DESTDIR)$(PREFIX)/bin/surf
+ @rm -f $(DESTDIR)$(PREFIX)/bin/surf-menu
@echo removing manual page from $(DESTDIR)$(MANPREFIX)/man1
@rm -f $(DESTDIR)$(MANPREFIX)/man1/surf.1
+ @echo removing desktop page from $(DESTDIR)/usr/share/applications
+ @rm -f $(DESTDIR)/usr/share/applications/surf.desktop
.PHONY: all options clean dist install uninstall
diff --git a/surf.desktop b/surf.desktop
new file mode 100644
index 0000000..eea27d6
--- /dev/null
+++ b/surf.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Surf
+GenericName=Web Browser
+TryExec=/usr/bin/surf-menu
+Exec=/usr/bin/surf-menu %u
+Terminal=false
+Categories=Network;WebBrowser;
+StartupNotify=true
+StartupWMClass=Surf
+MimeType=x-scheme-handler/unknown;x-scheme-handler/about;x-scheme-handler/https;x-scheme-handler/http;text/html;text/xml;