On 05/10/2014 03:57 PM, Daniel Leidert wrote:
> Hi,
>
> Indeed, bluefish does not come with a command string for x-www-browser.
> Of course, x-www-browser (probably) exists only on Debian-based systems.
> Therefor there won't be such a command string in bluefish upstream
> source. There are also differences in the browser commands used to show
> a page. Of course we can use
>
> x-www-browser '%p'
>
> But what is the benefit to add this to the Debian package?
>
> Regards, Daniel
The external command I'm using in Bluefish: "x-www-browser  -remote
'openURL(%p)' || x-www-browser '%p'&"

As far as the benefit, bluefish is opening a web browser by default that
isn't configured as the user's default web browser.

I've got Chromium set as the default web browser in KDE, I've got
Chromium set as the default web browser with update-alternatives
--config x-www-browser.

And yet, a fresh install of bluefish with no configuration files
launches iceweasel/firefox.

What happens when you install bluefish without the iceweasel / firefox
package?  Well, Bluefish doesn't launch *ANYTHING* then because Bluefish
keeps it's own separate config file for which web browser to use and it
doesn't even get that information from anywhere, it just makes it up and
if you don't have iceweasel/firefox then the configuration it makes up
will be flatly wrong and the application won't work as the user expects
it to.

The worst part is, clicking on the globe/web browser / "Preview in
Browser" button does absolutely nothing at all by default if you don't
have iceweasel/firefox installed.    It doesn't even give you an error
message that the reason it's not working is because you don't have
iceweasel/firefox installed.  Instead, you sit there wondering if the
application is completely busted or you need to go digging through
screens and screens of configuration to find the one option that will
allow you to launch a web browser.. 

Then when you find that option, you set it to a web browser you have
installed.. And then a week later you uninstall that web browser and you
get to go through the whole thing all over again.  I highly doubt that's
any user's idea of having a good time.


That seems rather silly..  Since:

update-alternatives will always keep x-www-browser pointed to a browser
installed on the system no matter what you install/uninstall.  (ie: Your
"Preview in browser" button in your application will never be broken if
you point the app to use x-www-browser by default, so long as the user
has at least one X compatible web browser installed on the system.


Again, it's just my 2 cents.  But I'm getting tired of seeing so many
applications have their own configuration option for which web browser
to use and everytime I open the applications up it seems like I have to
go digging through configuration files to change it...

That's part of the reason why x-www-browser is the default option in my
liferea package.. To make sure the application "just works" after it's
installed without forcing the user to find the configuration option to
properly configure the browser.  It might launch a browser that's not
the default configured for the desktop environment (because every
desktop environment crams that config in a different location somewhere
and it's a pain to go checking for them all).  But at least when a user
starts the app, it works and they can go and configure it later.

It is of my opinion that applications should be properly configured when
they're installed..  This doesn't mean you have to create some fancy
script to figure out what browser the user likes or what desktop
environment they're running or what the configured web browser for that
desktop environment is.. Rather just use something that works all the
time so the user doesn't take one look at the application and think it's
broken..

I'm one of the people that is of the belief that if you freshly install
and application and something doesn't work right out of the box because
of a configuration error, then there's something wrong with the
installation / default configuration of the package.  For Bluefish, it
won't work properly out of the box if iceweasel/firefox is not installed
and it won't even tell the user what's wrong in a message box.


-David


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to