-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans (2) . 

A single browser

   0.2  

KDE Improvement

Score 75%
A single browser
zoom


Blog:  Link
Minimum required   KDE 4.x
Downloads:  95
Submitted:  Jan 28 2011
Updated:  Feb 2 2011

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.




Changelog:

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!




LicenseGPL
SUSE(script bash example)
Send to a friend
Subscribe
Other  Artwork  from trebol-a
Report inappropriate content



-
.

 good !

 
 by Syvolc on: Jan 28 2011
 
Score 50%

Very good idea !

Thanks for your contribution.


Syvolc
[url]http://syvolc.briolet.fr/[/url]

Reply to this

-

 :)

 
 by pejakm on: Jan 28 2011
 
Score 50%

Good job!


Reply to this

-
.

 Awesome

 
 by Saleel on: Jan 28 2011
 
Score 50%

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.


Reply to this

-
.

 Thanx

 
 by trebol-a on: Jan 29 2011
 
Score 50%

Thanks to you, Saleel and everybody.

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


Reply to this

-

 Great idea!

 
 by adundovi on: Feb 1 2011
 
Score 63%
adundoviadundovi
http://wiki. open.hr
Home
-
Andrej Dundović -3

http://wiki.open.hr
Croatia, Križevci
Last visit May 27 2012
2 Friends
4 Groups

More info
Send a message
Add as friend
Other contents
--

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


A neutron walks into a bar; he asks the bartender, 'How much for a beer?' The bartender looks at him, and says 'For you, no charge.'
Reply to this

-

 Very good idea

 
 by matrs5 on: Feb 3 2011
 
Score 50%

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


Reply to this

Add commentBack






-

-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore




 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
News RSS   
Discussion RSS   
Events RSS   

Participate
Groups
Forum
Add Artwork
Public API
About KDE-Look.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2001-2014 KDE-Look.org Team  
All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.