diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-18 20:50:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-18 20:50:28 +0000 |
commit | e32cae7ce31a492b0bf4ad8c50f653f371376b12 (patch) | |
tree | 94c11f417a106c891a21dcad60f08dbff5eb2904 | |
parent | 6ad850be7dadbf0d29ddd5ecdcce0e2effc973bb (diff) | |
download | gnunet-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.am | 2 | ||||
-rwxr-xr-x | contrib/gnunet-fs-gtk-gnome.sh | 9 | ||||
-rw-r--r-- | contrib/gnunet-fs-gtk.protocol | 12 |
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 | ||
11 | EXTRA_DIST = \ | 11 | EXTRA_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 | ||
3 | gconftool-2 -t string -s /desktop/gnome/url-handlers/gnunet/command "gnunet-fs-gtk \"%s\"" | ||
4 | gconftool-2 -t bool -s /desktop/gnome/url-handlers/gnunet/enabled true | ||
5 | gconftool-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] | ||
2 | exec=gnunet-fs-gtk | ||
3 | # technically gnunet://fs/, but for now this should do... | ||
4 | protocol=gnunet | ||
5 | input=none | ||
6 | output=none | ||
7 | helper=true | ||
8 | listing=false | ||
9 | reading=false | ||
10 | writing=false | ||
11 | makedir=false | ||
12 | deleting=false | ||