summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-09-17 11:05:29 +0200
committerChristian Grothoff <christian@grothoff.org>2021-09-17 11:05:29 +0200
commit5df20a349cabc2ebd3747292be97239fdf837386 (patch)
tree03747eb1b58d6690bb3a78560c542167b28c2fdd /contrib
parentfc9ca33bca2652a6516eb1878863ea0d03c65d04 (diff)
madmurphy writes:
On AUR I have created the gnunet-uri.desktop file (which is installed as /usr/share/applications/gnunet-uri.desktop) to add support for the gnunet:// URI scheme (so basically it becomes possible to click on gnunet:// URIs in any browser GNUnet GTK needs to be installed too, but the URI handler gnunet-uri is part of the gnunet package). You can find a patch attached, which adds contrib/xdg-scheme-handler/gnunet-uri.desktop contrib/xdg-scheme-handler/README.md to the git repository.
Diffstat (limited to 'contrib')
-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;