A single browser 0.1

Alberto Garcia info at trebol-a.com
Fri Jan 28 05:21:56 CET 2011


Name: A single browser
Version: 0.1
Type: KDE Improvement
Depend: KDE 4.x
License: GPL
Homepage:
http://www.trebol-a.com/2011/01/19/un-sistema-con-varios-navegadores/
More Info:
http://kde-apps.org/content/show.php?content=137947

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
fi

if [ \"`pidof $KONQUEROR_BIN`\" != \"\" ]; then
        FAVORITE=$KONQUEROR_BIN
fi

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

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

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

$FAVORITE \"$1\"
#+++++++++++++++++++++++++++++++++

Sorry my poor english, I hope you understand me.





JOB RECOMMENDATION:

more jobs: http://KDE-Apps.org/jobs/




More information about the Kde-announce-apps mailing list