You are not logged in.

#1 2010-08-22 23:26:11

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

[solved] elinks, urxvt, and clickable urls

Is it possible to have urls open in elinks from urxvt? In my Xdefaults I have defined:

URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: /usr/bin/elinks -remote $URL
URxvt.matcher.button: 1
URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
URxvt.matcher.rend.0: fg16 RS_Uline

However, when clicking on links nothing happens (though when exiting X into framebuffer, I can see that links were being opened).
As a side note, in newsbeuter I have:

browser "/usr/bin/elinks -remote $URL"

and links open as expected ( i.e., in the current elinks window).
Anyway, I'm just trying to get clickable urls from urxvt to open in the same manner. hmm

Last edited by ntness (2010-08-23 04:58:03)


transcend to the fifth abode

Offline

#2 2010-08-23 00:21:08

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [solved] elinks, urxvt, and clickable urls

I think that you may need to launch another urxvt instance running elinks.

Offline

#3 2010-08-23 00:22:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] elinks, urxvt, and clickable urls

If I have elinks already running it seems to work.

Offline

#4 2010-08-23 00:46:25

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: [solved] elinks, urxvt, and clickable urls

That's what I've been trying to do...have all clickable links open in the single instance of elinks I have running.

With (an instance of elinks running):

URxvt.urlLauncher: /usr/bin/elinks -remote $URL

I get the following error:

Error Unable to retrieve file:///home/ME/$URL : No such file or directory

With (an instance of elinks running):

URxvt.urlLauncher: /usr/bin/elinks

I get nothing but remnants of the page once I exit X (in framebuffer)...which I suppose means it is not being passed through to the instance running.

neutral


transcend to the fifth abode

Offline

#5 2010-08-23 01:05:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] elinks, urxvt, and clickable urls

URxvt.urlLauncher: elinks

hangs my X

URxvt.urlLauncher: elinks --remote

works.

Offline

#6 2010-08-23 01:29:43

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: [solved] elinks, urxvt, and clickable urls

karol wrote:
URxvt.urlLauncher: elinks

hangs my X

URxvt.urlLauncher: elinks --remote

works.

Bah, no such luck here. Are you using the version found in extra or elinks-git from aur?


transcend to the fifth abode

Offline

#7 2010-08-23 01:35:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] elinks, urxvt, and clickable urls

elinks from extra.

You need to reload your Xdefaults, open a new terminal, click a link and it should work.

Offline

#8 2010-08-23 01:48:32

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: [solved] elinks, urxvt, and clickable urls

karol wrote:

elinks from extra.

You need to reload your Xdefaults, open a new terminal, click a link and it should work.

Just not working here.

From my Xdefauls:

URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: elinks --remote
URxvt.matcher.button: 1
URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
URxvt.matcher.rend.0: fg16 RS_Uline

Have reloaded Xdefaults, restarted, pounded head into desk a few times, played with a hundred strings, and so on ad infinitum. Would you mind posting the applicable section from your Xdefaults? I'll try exactly what you have.


transcend to the fifth abode

Offline

#9 2010-08-23 04:21:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] elinks, urxvt, and clickable urls

The simplest way should be by using eelinks instead of elinks:

URxvt.urlLauncher: /home/karol/eelinks
[karol@black ~]$ cat /home/karol/eelinks
#!/bin/sh
elinks -remote "openURL("$@",new-tab)"

That's what I resorted to after I had my system frozen a dozen times, after elinks refused to run or run but refused to render anything.

If you still wanna fight, 'man elinks.conf' may prove helpful.

Offline

#10 2010-08-23 04:57:41

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: [solved] elinks, urxvt, and clickable urls

karol wrote:

The simplest way should be by using eelinks instead of elinks:

URxvt.urlLauncher: /home/karol/eelinks
[karol@black ~]$ cat /home/karol/eelinks
#!/bin/sh
elinks -remote "openURL("$@",new-tab)"

That's what I resorted to after I had my system frozen a dozen times, after elinks refused to run or run but refused to render anything.

If you still wanna fight, 'man elinks.conf' may prove helpful.

Your method works. I bow humbly in gratitude...ahhh, the joy of clickable links. big_smile
I'll definitely be checking out the man page for elinks.conf. This is my first day of usage so I know I've a lot yet to discover and yet I'm already enjoying this browser. Thanks again.


transcend to the fifth abode

Offline

#11 2010-08-23 10:16:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] elinks, urxvt, and clickable urls

You can (allegedly) do some nice things http://www.calmar.ws/elinks/
If you find the correct way of running elinks, please do post. 'URxvt.urlLauncher: elinks' almost works, I can see in htop that elinks is run with the correct argument (the url I clicked), but my X freezes so it's not overly helpful.

Offline

Board footer

Powered by FluxBB