You are not logged in.

#1 2006-01-22 20:09:32

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Akregator "Open in EXISTING browser window" :D

Hi,

Been bugged by this issue for a while since I moved browsers. Now I'm accustomed to Akregator and actually quite like the way it handles RSS.

However, I prefer browsing in a single window on a single desktop. I put Kontact (with KMail/Akregator) on the second desktop. Akregators default "Open in external browser" works well... as long as the existing window of Konqueror is on the same desktop as Kontact/Akregator.

I created a custom bash script to handle this. Yes, it mainly comes from Kadu (the QT Gadu-Gadu client), but I've modified it a bit.

#/bin/bash

# Copyright (c) Kadu Team
# Modified by Michal 'Neuro' Witkowski

found=0;
for i in `/opt/kde/bin/dcop | grep konqueror`; do
    isshown=`/opt/kde/bin/dcop $i "konqueror-mainwindow#1" shown`;
    if [ $isshown == "true" ];then
        /opt/kde/bin/dcop $i "konqueror-mainwindow#1" newTab "$1" && found=1;
        /opt/kde/bin/dcop $i "konqueror-mainwindow#1" "raise";
    fi;
    if [ $found == "1" ]; then
        break;
    fi
done;

if [ $found != "1" ]; then
    /opt/kde/bin/kfmclient openURL "%1";
fi;

In case anyone would need it.

Offline

Board footer

Powered by FluxBB