- 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.
Ratings & Comments
5 Comments
I totally agree with you and your "multi browser problem". I'll test this in fedora
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
Thanks to you, Saleel and everybody. I think this is a interesting improvement for KDE (u other) and enhances the user desktop experience.
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.
Very good idea ! Thanks for your contribution.