On Wednesday 28 June 2006 18:06, Randall R Schulz wrote:
Hi,
I was hoping the latest KDE updates would fix this problem, admittedly a minor one, but it's still present...
If I launch Akregator from a desktop icon I created for this purpose and then close the window, leaving the Akregator status icon in the system tray, I can reopen the window either by clicking the tray icon or by opening the desktop icon.
However, when Akregator was started during login as part of restoring the previous session state, only the system tray icon can be used to restore the Akregator window. If under this circumstance I double-click the desktop icon, I get a bouncing cursor icon which just times out without opening the window for the existing Akregator instance.
Is this considered normal behavior? Perhaps there are options I can include in the desktop icon's akgregator command that will make it work as I want whether or not Akregator is running already and whether it was started automatically during login or manaully via the desktop icon.
Currently I'm launching it like this in the desktop icon:
akregator %i %m -caption "%c"
Since I don't know what that means, I'm guessing I copied it from somehwere, probably the Akregator item from the KDE menu. And in fact, that's what the KDE menu item for Akregator contains:
akregator %i %m -caption "%c"
Perhaps this is an inappropriate incantation for my purposes. Is there a way to invoke Akregator that works whether or not it's already running and when it is running regardless of how it was launched?
dcop :-) use a small script (this is not really tested so YMMV) #!/bin/bash if [ $(dcop | grep -c akregator) -gt 0 ] ; then if [ $(dcop akregator akregator_mainwindow hidden) == true ] ; then dcop akregator akregator_mainwindow setHidden false else dcop akregator akregator_mainwindow setHidden true fi else #this one you have to change to have the right params :-) akregator %i %m -caption "%c" fi regards j -- Jonas Helgi Palsson "Microsoft is not the answer. Microsoft is the question. NO is the answer." -Erik Naggum