LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-12-2005, 01:49 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Rep: Reputation: 52
Clicking an URL to evoke a browser


Hi folks,

FedoreCore2
KDE desktop

To evoke an URL on a OpenOffice document I have to start Mozilla browser first. Then on clicking the URL the web page will start. Otherwise without starting Mozilla browser clicking an URL has no effect.

Please advice where I have to edit/configure so that clicking an URL will start the default browser and then the webpage without starting browser first. If I need to use Firebox as the default browser where shall I edit/configure.

TIA

B.R.
satimis
 
Old 03-12-2005, 03:06 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
firefox nowadays has the startup script 'firefox' a tad modified to incorporate behaviour like you described.. IF no firefox is around, itll start a new one, if one is around it will open a new window, or a new tab based on your preferences.. So, calling 'firefox URL' will get you there no matter what the situation..

Now, configuring that OOo would use 'firefox URL' as the method of opening them, thats another story indeed.. A story I have no idea of, ive allways hated OOo..

edit: well, had a go at it anyways, a quick grepping in OOo:s installdir revealed:
/usr/local/OpenOffice.org1.1.4/program/python-core-2.2.2/lib/webbrowser.py

The directory will most likely vary for you, but now you know what file to edit.. well, perhaps not edit.. it contains lots of useful info on how OOo handles browsers..

another edit:
well, my experiments with the file led to only one thing: a corrupted config file -> OOo error that reveals the location of the setting in the OOo setup, and voila, there is a field to set the browser.. So: Tools -> Options -> External Programs ->HTTP etc.. I keyed in firefox, and voila, it opens my dummy link to the existing firefox, or starts a new one if I close it first..

Last edited by Artanicus; 03-12-2005 at 03:16 AM.
 
Old 03-12-2005, 05:53 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi Artanicus,

Tks for your advice.

Quote:
.........
another edit:
well, my experiments with the file led to only one thing: a corrupted config file -> OOo error that reveals the location of the setting in the OOo setup, and voila, there is a field to set the browser.. So: Tools -> Options -> External Programs ->HTTP etc.. I keyed in firefox, and voila, it opens my dummy link to the existing firefox, or starts a new one if I close it first..
I found out the trick.

If I add full path to HTTP and HTTPS under "Execute link using" e.g.

/usr/bin/firefox

It won't work.

If just add
firefox

there it works. Clinking URL on OOo doc will start Firefox and then the webpage.

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clicking on links in Thunderbird doesn't pop up a browser window Valhalla Linux - Software 6 04-19-2005 08:24 PM
Freezing up sometimes when clicking links in web browser Khang Debian 15 01-01-2005 11:04 PM
Browser, URL, new window question itsjustme General 4 08-29-2004 08:28 AM
Apache 2 with Tomcat 4 URL Problem In Browser adcworks Linux - General 1 08-16-2002 12:09 PM
New browser window opens up when clicking on advert? CragStar LQ Suggestions & Feedback 1 12-03-2000 04:54 PM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration