emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with setting up org-protocol
@ 2013-05-04 21:41 Marcin Borkowski
  2013-05-05  0:46 ` Suvayu Ali
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2013-05-04 21:41 UTC (permalink / raw)
  To: Org-mode mailing list

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

Hi list,

I tried to set up org-protocol (Ubuntu 12.04) and failed.  It seems that
I'm not the only one with this problem - see
http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work .

I edited the relevant page on my clone of Worg (I attach the patch), but
I'm not sure whether this is 100% correct: I guess it might only work
for Gnome (I don't use KDE, so I can't check for that), and I'm not sure
whether it's legal to just copy-paste from SO.  What I'm sure is that
(unlike the previous description on Worg) it works for me.

Could anyone check that and update Worg accordingly?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

[-- Attachment #2: 0001-A-proper-description-of-setting-up-org-protocol.patch --]
[-- Type: text/x-patch, Size: 1922 bytes --]

From 44fe509fa9ac5a6a6d070e5b4df4efb40d5e7f04 Mon Sep 17 00:00:00 2001
From: Marcin Borkowski <mbork@mbork.pl>
Date: Sat, 4 May 2013 23:31:48 +0200
Subject: [PATCH] A proper description of setting up org-protocol.

Taken from this answer: http://stackoverflow.com/a/12751732/1181665
by user Mark.
---
 org-contrib/org-protocol.org |   22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/org-contrib/org-protocol.org b/org-contrib/org-protocol.org
index e8419f2..088e33a 100644
--- a/org-contrib/org-protocol.org
+++ b/org-contrib/org-protocol.org
@@ -86,10 +86,22 @@ actions. Just register your custom sub-protocol and handler with the variable
 
 *** Linux setup (Gnome)
 
-    For this to work, you'll need the Gnome-Libraries to be installed.
+    (Instructions taken from [[http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work][this answer on StackOverflow]].)
+
+    Create and save a file called org-protocol.desktop to ~/.local/share/applications containing:
+
+    : [Desktop Entry]
+    : Name=org-protocol
+    : Exec=emacsclient %u
+    : Type=Application
+    : Terminal=false
+    : Categories=System;
+    : MimeType=x-scheme-handler/org-protocol;
+    
+    Then run:
+
+    : $ update-desktop-database ~/.local/share/applications/
 
-    : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/local/bin/emacsclient %s' --type String
-    : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true
 
 *** Linux setup (KDE)
 
@@ -145,10 +157,6 @@ After installing EmacsClient.app you should then [[Verify the installation]]. On
 ***** Firefox
       If you are using Firefox on Mac OS X, see [[Mac OS X setup]]. 
 
-   
-      Please refer to http://kb.mozillazine.org/Register_protocol and use
-      "org-protocol" as protocol.
-
 # <<acrobat-setup>>
 ***** Acrobat Reader
     :PROPERTIES:
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: Problem with setting up org-protocol
  2013-05-04 21:41 Problem with setting up org-protocol Marcin Borkowski
@ 2013-05-05  0:46 ` Suvayu Ali
  2013-05-05 10:07   ` Marcin Borkowski
  0 siblings, 1 reply; 4+ messages in thread
From: Suvayu Ali @ 2013-05-05  0:46 UTC (permalink / raw)
  To: emacs-orgmode

Hi Marcin,

Since you already looked at it, I have a comment without looking at it
myself :-p.

On Sat, May 04, 2013 at 11:41:20PM +0200, Marcin Borkowski wrote:
>  *** Linux setup (Gnome)
>  
> -    For this to work, you'll need the Gnome-Libraries to be installed.
> +    (Instructions taken from [[http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work][this answer on StackOverflow]].)
> +
> +    Create and save a file called org-protocol.desktop to ~/.local/share/applications containing:
> +
> +    : [Desktop Entry]
> +    : Name=org-protocol
> +    : Exec=emacsclient %u
> +    : Type=Application
> +    : Terminal=false
> +    : Categories=System;
> +    : MimeType=x-scheme-handler/org-protocol;
> +    
> +    Then run:
> +
> +    : $ update-desktop-database ~/.local/share/applications/
>  
> -    : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/local/bin/emacsclient %s' --type String
> -    : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true

As far as I know, gconf was replaced with dconf with the new Gnome.  In
that case it might be better to replace the instructions with the
corresponding dconf command line instead of some Gnome only binary
(update-desktop-database here).  Would you be willing to take a look at
it?

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with setting up org-protocol
  2013-05-05  0:46 ` Suvayu Ali
@ 2013-05-05 10:07   ` Marcin Borkowski
  2013-05-05 10:49     ` Suvayu Ali
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2013-05-05 10:07 UTC (permalink / raw)
  To: emacs-orgmode

Dnia 2013-05-05, o godz. 02:46:46
Suvayu Ali <fatkasuvayu+linux@gmail.com> napisał(a):

> Hi Marcin,
> 
> Since you already looked at it, I have a comment without looking at it
> myself :-p.
> 
> On Sat, May 04, 2013 at 11:41:20PM +0200, Marcin Borkowski wrote:
> >  *** Linux setup (Gnome)
> >  
> > -    For this to work, you'll need the Gnome-Libraries to be
> > installed.
> > +    (Instructions taken from
> > [[http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work][this
> > answer on StackOverflow]].) +
> > +    Create and save a file called org-protocol.desktop to
> > ~/.local/share/applications containing: +
> > +    : [Desktop Entry]
> > +    : Name=org-protocol
> > +    : Exec=emacsclient %u
> > +    : Type=Application
> > +    : Terminal=false
> > +    : Categories=System;
> > +    : MimeType=x-scheme-handler/org-protocol;
> > +    
> > +    Then run:
> > +
> > +    : $ update-desktop-database ~/.local/share/applications/
> >  
> > -    : gconftool-2
> > -s /desktop/gnome/url-handlers/org-protocol/command
> > '/usr/local/bin/emacsclient %s' --type String
> > -    : gconftool-2
> > -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean
> > true
> 
> As far as I know, gconf was replaced with dconf with the new Gnome.
> In that case it might be better to replace the instructions with the
> corresponding dconf command line instead of some Gnome only binary
> (update-desktop-database here).  Would you be willing to take a look
> at it?

Didn't know that.  But if you look closer, you'll see the minus signs
in front of these lines - actually, I deleted them;).

Maybe what you write is the reason the recipe from Worg didn't work?  I
don't know too much about Gnome - I'm just a user, so I don't know.

> Cheers,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with setting up org-protocol
  2013-05-05 10:07   ` Marcin Borkowski
@ 2013-05-05 10:49     ` Suvayu Ali
  0 siblings, 0 replies; 4+ messages in thread
From: Suvayu Ali @ 2013-05-05 10:49 UTC (permalink / raw)
  To: emacs-orgmode

On Sun, May 05, 2013 at 12:07:36PM +0200, Marcin Borkowski wrote:
> Dnia 2013-05-05, o godz. 02:46:46
> Suvayu Ali <fatkasuvayu+linux@gmail.com> napisał(a):
> 
> > Hi Marcin,
> > 
> > Since you already looked at it, I have a comment without looking at it
> > myself :-p.
> > 
> > On Sat, May 04, 2013 at 11:41:20PM +0200, Marcin Borkowski wrote:
> > >  *** Linux setup (Gnome)
> > >  
> > > -    For this to work, you'll need the Gnome-Libraries to be
> > > installed.
> > > +    (Instructions taken from
> > > [[http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work][this
> > > answer on StackOverflow]].) +
> > > +    Create and save a file called org-protocol.desktop to
> > > ~/.local/share/applications containing: +
> > > +    : [Desktop Entry]
> > > +    : Name=org-protocol
> > > +    : Exec=emacsclient %u
> > > +    : Type=Application
> > > +    : Terminal=false
> > > +    : Categories=System;
> > > +    : MimeType=x-scheme-handler/org-protocol;
> > > +    
> > > +    Then run:
> > > +
> > > +    : $ update-desktop-database ~/.local/share/applications/
> > >  
> > > -    : gconftool-2
> > > -s /desktop/gnome/url-handlers/org-protocol/command
> > > '/usr/local/bin/emacsclient %s' --type String
> > > -    : gconftool-2
> > > -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean
> > > true
> > 
> > As far as I know, gconf was replaced with dconf with the new Gnome.
> > In that case it might be better to replace the instructions with the
> > corresponding dconf command line instead of some Gnome only binary
> > (update-desktop-database here).  Would you be willing to take a look
> > at it?
> 
> Didn't know that.  But if you look closer, you'll see the minus signs
> in front of these lines - actually, I deleted them;).

Exactly my point.  I was suggesting instead of losing the information by
deleting it, it would be worthwhile to "translate" the gconf commands to
the corresponding dconf commands.

> Maybe what you write is the reason the recipe from Worg didn't work?  I
> don't know too much about Gnome - I'm just a user, so I don't know.

But you *are* a user :), I was just suggesting with a little more effort
maybe you can figure out what the correct command is.  I think it would
be a worthy addition to Worg.  With your current change, we make the
Worg entry even more desktop dependent than before[1].

Hope my encourangements get you motivated to look into this.

Cheers,


Footnotes:

[1] Although gconf/dconf is used with Gnome, there are many other
    desktops that use them as backends.  After all most Gnome apps are
    rather popular.


-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-05 10:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-04 21:41 Problem with setting up org-protocol Marcin Borkowski
2013-05-05  0:46 ` Suvayu Ali
2013-05-05 10:07   ` Marcin Borkowski
2013-05-05 10:49     ` Suvayu Ali

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).