summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/xdg-scheme-handler/README.md8
-rw-r--r--contrib/xdg-scheme-handler/gnunet-uri.desktop9
2 files changed, 17 insertions, 0 deletions
diff --git a/contrib/xdg-scheme-handler/README.md b/contrib/xdg-scheme-handler/README.md
new file mode 100644
index 000000000..919ae37f8
--- /dev/null
+++ b/contrib/xdg-scheme-handler/README.md
@@ -0,0 +1,8 @@
+XDG Scheme Handler for GNUnet URIs
+==================================
+
+To register the `gnunet://` URI scheme, launch the following commands from this
+directory as a privileged user:
+
+ install -Dm644 gnunet-uri.desktop /usr/share/applications/gnunet-uri.desktop
+ update-mime-database /usr/share/applications/
diff --git a/contrib/xdg-scheme-handler/gnunet-uri.desktop b/contrib/xdg-scheme-handler/gnunet-uri.desktop
new file mode 100644
index 000000000..4f847d20f
--- /dev/null
+++ b/contrib/xdg-scheme-handler/gnunet-uri.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=GNUnet URI
+Exec=gnunet-uri %u
+GenericName=URI handler for the GNUnet network
+Icon=gnunet
+Type=Application
+Terminal=false
+NoDisplay=true
+MimeType=x-scheme-handler/gnunet;