LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-27-2013, 05:36 PM   #1
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 86

Rep: Reputation: Disabled
Purpose of htmlview in pkgtool; default browser


In pkgtool, Setup, there's a script "htmlview - Set a default browser link". Nothing happens when I run it. Upon closer inspection, it's only a one-line script:
Code:
#!/bin/sh
exec konqueror "$@"
When I try to execute it normally, it starts konqueror of course.

Now, when I open links from:
1) LibreOffice, they open in Seamonkey (which I want)
2) Mumble - in Firefox (which I don't like)
3) Okular - since it's a KDE program, I thought it would open in konqueror, but no, it opens in Seamonkey too, however not the actual website, but only a cashed file from var/tmp/kdecache-elesmod/krun ()

So what's the purpose of that htmlview script? Did it used to work and now it's obsolete? Or maybe it has some use which I haven't figured out?
 
Old 09-27-2013, 06:54 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 876

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
Originally Posted by elesmod View Post
In pkgtool, Setup, there's a script "htmlview - Set a default browser link". Nothing happens when I run it. Upon closer inspection, it's only a one-line script:
Code:
#!/bin/sh
exec konqueror "$@"
When I try to execute it normally, it starts konqueror of course.

Now, when I open links from:
1) LibreOffice, they open in Seamonkey (which I want)
2) Mumble - in Firefox (which I don't like)
3) Okular - since it's a KDE program, I thought it would open in konqueror, but no, it opens in Seamonkey too, however not the actual website, but only a cashed file from var/tmp/kdecache-elesmod/krun ()

So what's the purpose of that htmlview script? Did it used to work and now it's obsolete? Or maybe it has some use which I haven't figured out?
I'm not exactly sure where I picked that up from, other than I don't think I wrote it. For one thing, I'm not in the habit of referring to myself as Pat (or as Bob Dole).

IIRC, some other distribution (I think it was Debian, but I'm not sure) began shipping such a script, and there are now some KDE and GTK+ things that expect to be able to start a browser with it. If the script isn't there, they can't open a browser.

It appears that either the test order should be reversed, or the loop should exit when the first browser is found. The browsers seem to be listed in preferred order, but the way it is processed now leaves the least preferred browser in the htmlview script.

Currently only geeqie and kalzium are using this, so it has nothing to do with the behavior of those other programs. Those are probably hardcoded according to their developers' own preferences. Perhaps they should be using this script so the preference could be assigned in a single location.
 
2 members found this post helpful.
Old 09-28-2013, 04:53 AM   #3
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 86

Original Poster
Rep: Reputation: Disabled
Ok, thanks for the explanation.
 
Old 09-30-2013, 10:20 AM   #4
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 199

Rep: Reputation: 30
I believe Bernhard Rosenkraenzer ("bero"), formerly a Red Hat employee, wrote it. I remember older Red Hat releases had a globe icon browser launcher on gnome-panel that ran htmlview and other RH config tools used it too.

I remember bero pulling it into Ark Linux when he forked RH. I did a bit of packaging for Ark and remember patching it to look for KDE's default web browser if you were running KDE and GNOME's default if you were running GNOME. If you were running neither, it would go fall back on going through a list unless you put some config file in /etc.

So yeah. That's my story.
 
Old 10-02-2013, 09:09 AM   #5
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 905

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Quote:
Originally Posted by volkerdi View Post
Currently only geeqie and kalzium are using this, so it has nothing to do with the behavior of those other programs. Those are probably hardcoded according to their developers' own preferences. Perhaps they should be using this script so the preference could be assigned in a single location.
I think, "xdg-open" is the correct command to launch the user's preferred browser. It also accepts URLs.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My spoofed browser string a.k.a cloaked with a purpose acummings Slackware 1 10-15-2009 03:22 PM
htmlview ?? your_shadow03 Linux - Newbie 6 07-09-2009 07:03 AM
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 12:45 PM
How to Change Default Browser to a new browser banner Linux - General 1 05-14-2005 12:09 AM
gaim browser / default browser question hildog Linux - Newbie 2 10-03-2003 10:17 AM


All times are GMT -5. The time now is 06:03 PM.

Main Menu
Advertisement
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