Real Software Forums
http://forums.realsoftware.com/

Showurl acting weird
http://forums.realsoftware.com/viewtopic.php?f=8&t=45380
Page 1 of 1

Author:  f_hendriksen [ Tue Sep 18, 2012 10:09 am ]
Post subject:  Showurl acting weird

Showurl is (according to the LR) supposed to open a webpage using the sysem's default browser. But when I use showurl it launches the application Kompozer (html editor). When I remove Kompozer from my system and I use showurl I get the following error:
Couldn't find file /var/tmp/kdecache-frank/krun/8794.0

When i try to open a webpage using xdg-open (which uses the default browser) I have no problem.

Anyone a clue?

Author:  f_hendriksen [ Tue Sep 18, 2012 10:15 am ]
Post subject:  Re: Showurl acting weird

BTW I'm using XUbuntu 12.04 and RS 2011R43

Author:  Bob Coleman [ Tue Sep 18, 2012 12:09 pm ]
Post subject:  Re: Showurl acting weird

Are you passing a file path or a web URL?

ShowURL will use the system default program for the protocol defined. If double clicking an html file opens it in a browser then ShowURL will too. Real Studio makes no distinction between browsers and other programs. It passes what you put in to the OS and asks what program to open it in.

Of course I am just guessing that this is your situation because you didn't post a sample of what you are trying to accomplish for us to help you with.

Author:  f_hendriksen [ Tue Sep 18, 2012 12:40 pm ]
Post subject:  Re: Showurl acting weird

I was trying
showurl ("http://www.nu.nl")

Author:  npalardy [ Tue Sep 18, 2012 1:00 pm ]
Post subject:  Re: Showurl acting weird

In terminal try
echo $BROWSER
and see what is being set
That used to be how many distros identified their default browser and the framework may be trying to resolve it using that

Author:  f_hendriksen [ Wed Sep 19, 2012 3:02 am ]
Post subject:  Re: Showurl acting weird

echo $BROWSER returned nothing, soi I guess BROWSER wasn't set.
I added
BROWSER=/usr/bin/firefox
to /etc/environment
after rebooting everything is working.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/