A single browser

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
Score 80.4%
Description:

One Problem and simple idea:

- I have six browsers installed on my opensuse

- When I press an hiperlink on a message kde run my "favorite browser" (ex: Firefox)

- Ok. But if I have running GoogleChrome or Opera.. why not open the link in this brownser?
Now I have three browser: Chrome, Opera an my "little less favorite" Firefox. :)

Solution
- I set a very simple bash script like a Favorite browser.
When this script received a url to open, check the active current brownser and pass at the last the url... and with a last option is launch the favorite browser.

Now my GNU/Linux/opensuse is much faster and do not open more one browser.

The script content is:
#+++++++++++++++++++++++++++++++++
#!/bin/sh
CHROME_BIN="/usr/bin/google-chrome"
FIREFOX_BIN="/usr/bin/firefox"
KONQUEROR_BIN="/usr/bin/konqueror"
OPERA_BIN="/usr/bin/opera"
FLOCK_BIN="/usr/bin/flock"

FAVORITE=$CHROME_BIN

if [ "`pidof $OPERA_BIN`" != "" ]; then
FAVORITE=$OPERA_BIN
PARAMETERS=""
fi

if [ "`pidof $KONQUEROR_BIN`" != "" ]; then
FAVORITE="qdbus `qdbus | grep konqueror` /konqueror/MainWindow_1 org.kde.Konqueror.MainWindow.newTab"
PARAMETERS="False"
fi

if [ "`pidof $FLOCK_BIN-bin`" != "" ]; then
FAVORITE=$FLOCK_BIN-browser
PARAMETERS=""
fi

if [ "`pidof $FIREFOX_BIN-bin`" != "" ]; then
FAVORITE=$FIREFOX_BIN
PARAMETERS=""
fi

if [ "`pidof $CHROME_BIN`" != "" ]; then
FAVORITE=$CHROME_BIN
PARAMETERS=""
fi

$FAVORITE "$1" $PARAMETERS
#+++++++++++++++++++++++++++++++++


INSTALL
- Save the download (or above content) in your /usr/bin/one_simple_browser
- make chmod +x /usr/bin/one_simple_browser
- (Check it the paths of your system)
- Set "one_simple_browser" with "Predefined browser" in kcmshell4 componentchooser
- Set "one_simple_browser" like "Default browser" in Choqok and others.
- Is simple :)

Regards.
Sorry my poor english, I hope you understand me.
Last changelog:

8 years ago

0.1: Presentation

0.2: Modification for force to Konqueror open URL in new tab, better new window.

0.2.1 A little bug with opcion PARAMETERS, Solved!

matrs5

8 years ago

I totally agree with you and your "multi browser problem". I'll test this in fedora

Report

adundovi

8 years ago

Really great idea! On F14 it works after few adjustments:
* pidof returns only process names, not full path, so I left only program names in script.
* remove "-bin" suffix from Firefox

Report

C

trebol-a

8 years ago

Thanks to you, Saleel and everybody.

I think this is a interesting improvement for KDE (u other) and enhances the user desktop experience.

Report

Saleel

8 years ago

This is really great! I personally use chromium as my browser and encourage others to use firefox when on my system, but since the chromium is default if they click a link/use krunner; chromium pops up.

Something like this is a very elegant way of solving this issue. Thanks a million.

Report

pejakm

8 years ago

Good job!

Report

Syvolc

8 years ago

Very good idea !

Thanks for your contribution.

Report

8 years ago

0.1: Presentation

0.2: Modification for force to Konqueror open URL in new tab, better new window.

0.2.1 A little bug with opcion PARAMETERS, Solved!

12345678910
118
product-maker hackan301 Nov 10 2012 9 excellent
product-maker kalmar Sep 17 2012 9 excellent
product-maker nikore90 Dec 07 2011 9 excellent
product-maker v6lur Feb 03 2011 9 excellent
product-maker robyshot Feb 02 2011 9 excellent
product-maker integr8e Feb 02 2011 9 excellent
product-maker birdflesh Feb 01 2011 9 excellent
product-maker luisromangz Feb 01 2011 3 bad
product-maker adundovi Feb 01 2011 9 excellent
product-maker Saleel Jan 28 2011 9 excellent
product-maker lebrun Jan 28 2011 9 excellent
product-maker neokore Jan 28 2011 9 excellent
product-maker DanaKil Jan 28 2011 9 excellent
product-maker jumper47 Jan 28 2011 9 excellent
product-maker pejakm Jan 28 2011 9 excellent
product-maker vitoubien Jan 28 2011 9 excellent
product-maker msledziona Jan 28 2011 9 excellent
product-maker steampoweredlawngnome Jan 28 2011 9 excellent
product-maker Znurre Jan 28 2011 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.2
updated Feb 02 2011
added Jan 27 2011
downloads 24h
0
page views 24h 3