Bug 127746 - On KDE session startup always two instances are launched
Summary: On KDE session startup always two instances are launched
Status: RESOLVED WORKSFORME
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: 1.2.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-21 10:12 UTC by Stefan Nikolaus
Modified: 2006-09-26 12:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Nikolaus 2006-05-21 10:12:54 UTC
Version:           1.2.2 (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Everytime I log into KDE two instances of akregator are started and I have to close the warning message box, quit the instances and start akregator manually. This is annoying.

I've used from time to time another X session parallel. Could this be the cause as the warning message talks about another display?

I've disabled the akregator plugin in Konqueror: still the same.

Tell me in which config files I should look or which files I can delete. I tried it already myself but without luck.
Comment 1 Frank Osterfeld 2006-05-21 10:33:01 UTC
Are there really two instances running (which I doubt) or did you conclude that from the error message?
The problem in 3.5.2 that the akregator PID in the lockfile $KDEHOME/share/apps/akregator/lock isn't resetted on Akregator shutdown, so if Akregator gets the same PID again on next start, the warning dialog appears. 
This happens only on systems where the startup sequence is fixed in a way that every app gets the same PID on every startup. Which is not the case on my system, so this one slipped through...
A workaround until 3.5.3 is to delete the lock file on KDE startup (before akregator is started).

This is fixed in SVN, so if it is the cause of your problems (which I assume), this bug can be closed.
Comment 2 Stefan Nikolaus 2006-05-29 19:48:20 UTC
Just for clarification the error message:
"Akregator already seems to be running on another display on this machine. Running akregator more than once is not supported by the Metakit backend and can cause ..."

The process table shows me just one akregator process and some kio slaves (file and http). The kio_file ones disappear after a short time.

I've updated to 544821. No change so far. Quitted the current session, deleted the lock file, restarted kdm, logged in, issue rises up again.
Comment 3 Stefan Nikolaus 2006-05-29 19:51:47 UTC
I'll get two tray icons and clicking on them raises a separate akregator main window for each.
Comment 4 Stefan Nikolaus 2006-05-29 20:00:06 UTC
KDE build from sources (SVN 544821) 
Qt 3.3.6 (qt-copy w/ applied patches) 
SUSE Linux 10.1
kernel 2.6.16.13-4-default (SUSE) 
gcc (GCC) 4.1.0 (SUSE Linux)
Comment 5 Frank Osterfeld 2006-09-04 00:12:32 UTC
Is this still an issue with 3.5.4?
Comment 6 Stefan Nikolaus 2006-09-04 10:25:17 UTC
Yes, the second icon has vanished, but the error message stayed. And I have to restart Akregator to make it usable.
Comment 7 Stefan Nikolaus 2006-09-26 12:02:04 UTC
I don't know, wether you have changed anything with respect to the lock, but it seems to work again (3.5 branch, 588368).