[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-de
Subject:    Re: [kde-de] email - Link im Unterfenster =?iso-8859-15?q?=F6ffnen?=
From:       Thomas Debe <sert_delta () gmx ! de>
Date:       2003-12-08 16:06:30
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 8. Dezember 2003 09:50 schrieb Michael Brach:
> Guten Morgen,
 Hallo Michael !

[Links in Tabs öffnen]
Googeln brachte eine Lösung für Dein Problem:

In comp.windows.x.kde v.26.09.2003

Lee J. Moore wrote:
>
> But that doesn't do it from the command line (what he asked for).  I'd
> like this level of configurability too but it's always had me stumped.

Pardon the followup to self, but I *really* wanted this ability and finally
created a dirty BASH/DCOP workaround this morning.  Seems to work when set
as a mimetype, when set as the new browser command in KNode and from the
command line.  The url is the first parameter and using "foreground" as the
second, forces Konqueror to become the topmost window.

Copy the following into a text file, save it, chmod a+x it, and it should
work.



[schnipp}

#!/bin/bash
#
# konq_newtab is a dirty workaround to get Konqueror opening links
# in new tabs.
# by Lee J. Moore (lee@cafe-society.com)
#
# Either use this from the command line, or, if you want links clicked 
# from any KDE app to open in a new Konqueror tab, be sure to add 
# a new text/html mimetype (Control Center > KDE Components > File
# Associations >  +text > +html), pointing it at this script.  Eg. 
#
#       konq_newtab %u
# or
#       konq_newtab %u foreground
#
# The latter will force Konqueror to the foreground (topmost window on
# the screen)

KONQ_ID=$(dcopfind -a konqueror*)

if [ -z ${KONQ_ID} ]; then
        kfmclient openURL ${1} text/html
else
        dcop ${KONQ_ID} konqueror-mainwindow#1/action/newtab activate
        dcop ${KONQ_ID} konqueror-mainwindow#1 openURL ${1}
fi

if [ "${2}" = "foreground" ]; then
        dcop ${KONQ_ID} qt/konqueror-mainwindow#1 raise
fi

[schnipp]

Das durch [scnipp] gekennzeichnet Script sicherst Du mit einem Texteditor in 
ein File. Diese File machst Du mit chmod +x Filename ausführbar und kopierst 
es in Deinen Pfad z.B. /usr/bin/

Bei den Dateizuordnungen wählst Du bei text/html diese Datei aus. (muß an 
erster Stelle stehen)
Damit wird JEDER Link in einem TAB geöffnet. Möchtest Du den Link in einem 
anderen Fenster haben, kannst Du mit STR+Shift+B den TAB verselbständigen.

gruß
thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/1KGL6NmJjDW/de0RAu1NAJwM9iLtIjcnTBr/wTtRa5fcZhuRRgCfQT4Z
AL0J6PzkmD105IXM2b8+nhw=
=ONis
-----END PGP SIGNATURE-----

--
_______________________________________________
kde-de mailing list
kde-de@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-de
kde-de Admin: kde-de-admin@mail.kde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic