aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-18 20:50:28 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-18 20:50:28 +0000
commite32cae7ce31a492b0bf4ad8c50f653f371376b12 (patch)
tree94c11f417a106c891a21dcad60f08dbff5eb2904
parent6ad850be7dadbf0d29ddd5ecdcce0e2effc973bb (diff)
downloadgnunet-gtk-e32cae7ce31a492b0bf4ad8c50f653f371376b12.tar.gz
gnunet-gtk-e32cae7ce31a492b0bf4ad8c50f653f371376b12.zip
adding some scripts for installing gnunet://-protocol handlers to point to gnunet-fs-gtk, this should fix #1083
-rw-r--r--contrib/Makefile.am2
-rwxr-xr-xcontrib/gnunet-fs-gtk-gnome.sh9
-rw-r--r--contrib/gnunet-fs-gtk.protocol12
3 files changed, 23 insertions, 0 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index b8290635..41ba4a06 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -9,6 +9,8 @@ IMAGES = \
9 gnunet-setup-oxygen-ok.png 9 gnunet-setup-oxygen-ok.png
10 10
11EXTRA_DIST = \ 11EXTRA_DIST = \
12 gnunet-fs-gtk.protocol \
13 gnunet-fs-gtk-gnome.sh \
12 $(pkgdata_DATA) \ 14 $(pkgdata_DATA) \
13 $(IMAGES) 15 $(IMAGES)
14 16
diff --git a/contrib/gnunet-fs-gtk-gnome.sh b/contrib/gnunet-fs-gtk-gnome.sh
new file mode 100755
index 00000000..b0d3ac7b
--- /dev/null
+++ b/contrib/gnunet-fs-gtk-gnome.sh
@@ -0,0 +1,9 @@
1#!/bin/sh
2# This shell script can be used to configure the "gnunet://" URL handler for Gnome
3gconftool-2 -t string -s /desktop/gnome/url-handlers/gnunet/command "gnunet-fs-gtk \"%s\""
4gconftool-2 -t bool -s /desktop/gnome/url-handlers/gnunet/enabled true
5gconftool-2 -t bool -s /desktop/gnome/url-handlers/gnunet/needs_terminal false
6
7# Uninstall using
8# gconftool-2 -u /desktop/gnome/url-handlers/gnunet --recursive-unset
9
diff --git a/contrib/gnunet-fs-gtk.protocol b/contrib/gnunet-fs-gtk.protocol
new file mode 100644
index 00000000..30bae115
--- /dev/null
+++ b/contrib/gnunet-fs-gtk.protocol
@@ -0,0 +1,12 @@
1[Protocol]
2exec=gnunet-fs-gtk
3# technically gnunet://fs/, but for now this should do...
4protocol=gnunet
5input=none
6output=none
7helper=true
8listing=false
9reading=false
10writing=false
11makedir=false
12deleting=false