Home

August 9th, 2006

command line new tabs in konqueror

  • Aug. 9th, 2006 at 2:36 PM
head
The following is a simple shell script using the KDE dcop client to open new tabs in konqueror (or a new instance of konqueror if it's not running). I use this from pine's url-viewers setting to launch new tabs with a url contained in a email.

#!/bin/sh

KONQ_WIN=`dcop konq* | head -1`

if [ "$KONQ_WIN" = "" ]; then
    /usr/local/bin/konqueror $1 &
else
    NEW_TAB=`dcop $KONQ_WIN konqueror-mainwindow#1 action newtab`
    dcop $NEW_TAB activate
    dcop $KONQ_WIN konqueror-mainwindow#1 openURL $1
fi
return 0

Profile

head
[info]othermark
othermark

Advertisement

Latest Month

December 2009
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  
Powered by LiveJournal.com
Designed by Tiffany Chow