Bug 39083 - korganizer doesn't re-read calendar file if signal sent
Summary: korganizer doesn't re-read calendar file if signal sent
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-07 20:03 UTC by Unknown
Modified: 2008-11-16 02:43 UTC (History)
1 user (show)

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 nathan-korganizer 2002-03-07 19:48:47 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           korganizer
Version:           KDE 2.2.2 
Severity:          wishlist
Installed from:    RedHat RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Feature request:  make korganizer re-read
the cuurent calendar if an "appropriate"
signal is sent to the binary.  SIGHUP is
general convention but SIGUSR1 would suffice
too.  

In particular I receive many text/calendar 
MIME attachments which are vcalendar files.
With procmail and mutt I can automatically add
the events to my calendar file but I don't see
how I can notify korganizer that its calendar
has changed.  strace didn't help I also didn't see
calls to sigaction or references to sa_handler
in the pim source.  Is there a watchdog of
some kind which looks at the modification time
of the calendar file to see if it has changed?

(Submitted via bugs.kde.org)
Comment 1 Reinhold Kainhofer 2003-08-13 21:52:28 UTC
This already works for the system's standard calendar (in kde 3.2 / current CVS).

For other files, however, this hasn't been implemented yet.
Comment 2 Tobias Koenig 2003-08-14 19:40:29 UTC
Hi, 
 
with CVS HEAD this is possible via DCOP. 
Just call 
  dcop korganizer KOrganizerIface openURL <path_to_file> 
to let update korganizer reread the file. 
 
Ciao, 
Tobias 
Comment 3 Reinhold Kainhofer 2003-08-14 19:56:39 UTC
Subject: Re:  korganizer doesn't re-read calendar file if signal sent

> with CVS HEAD this is possible via DCOP.
> Just call
>   dcop korganizer KOrganizerIface openURL <path_to_file>
> to let update korganizer reread the file.

... which doesn't work if you open korganizer with the standard calendar, and 
then open the file in korganizer in a second window (or rather, you have to 
create a new calendar window, and there you can open the file). If you close 
the first window, the KOrganizerIface will no longer be available via dcop.

Actually, as soon as you close one korganizer window, the KOrganizerIface 
object will not be available any more. 

Reinhold

Comment 4 Cornelius Schumacher 2003-08-17 15:32:17 UTC
We should properly fix this by watching all files opened in KOrganizer. 
 
Comment 5 Stephan Kulow 2004-05-25 08:50:56 UTC
Replaced nathan-korganizer@nrp.com with null@kde.org due to bounces by reporter
Comment 6 Reinhold Kainhofer 2006-11-02 19:14:16 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 7 Christophe Marin 2008-11-16 02:43:35 UTC
Should be working as expected in KDE4.