Bug 384883 - Issues to Export / Import Calendars
Summary: Issues to Export / Import Calendars
Status: RESOLVED DUPLICATE of bug 374337
Alias: None
Product: kalarm
Classification: Applications
Component: Akonadi (show other bugs)
Version: 2.11.4
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-20 14:23 UTC by Rafael Fernandes
Modified: 2019-07-31 23:32 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 Rafael Fernandes 2017-09-20 14:23:58 UTC
732/5000
Hello

I would like to report that it is not possible to export / import calendars in KAlarm, version 2.11.4-5ak.

When you try to export an alarm and calendars the following message appears: Failed to save new calendar to: / home / Desktop / alarm.ics

Another attempt I made was to go to the KAlarm folder (/home/.local/share/kalarm) and copy the files "expired.ics" and "displaying.ics". Then I imported these files into KAlarm that is installed on another computer.
However, after importing these files no calendar appears in the program!

I really need your help because I use the program a long time and I have dozens of alarms saved there that need to be imported to another machine!

Thank you very much!
Comment 1 David Jarvie 2017-09-20 19:12:45 UTC
The export bug was fixed in KAlarm 2.11.12, which was released in KDE Applications 16.12.1.

Importing displaying.ics doesn't seem useful, since it is essentially a temporary file which just contains alarms which are currently being displayed. Its only use is to enable KAlarm to redisplay the alarms after a logout or a crash. So I don't propose to try to make it possible to import that file.

I'll look into the import problem with expired.ics. 

If you need to import expired.ics now, you could use the following workaround:

Copy expired.ics to another temporary file. Using a text editor, edit that temporary file and remove the 5 lines at the start from BEGIN:VCALENDAR down to (and including) the line beginning X-KDE-KALARM-VERSION. Also remove the last line END:VCALENDAR. Copy this temporary file onto the other computer.

On the other computer, edit its expired.ics and insert the contents of the temporary file immediately before the last line END:VCALENDAR.

You should then see the copied expired alarms in KAlarm in the new computer. If  you don't see them, you may need to restart Akonadi, or alternatively quit KAlarm and Akonadi before editing the file. Let me know if you need to do this but don't know how to.
Comment 2 Rafael Fernandes 2017-09-20 21:50:25 UTC
Hi David. First, Thank you for your attention.

" On the other computer, edit its expired.ics and insert the contents of the temporary file immediately before the last line END:VCALENDAR. 


My expired.ics file only has the following lines:

  BEGIN: VCALENDAR
PRODID: - // K Desktop Environment // NONSGML libkcal 4.3 // EN
VERSION: 2.0
X-KDE-ICAL-IMPLEMENTATION-VERSION: 1.0
X-KDE-KALARM-VERSION: 2.7.0
END: VCALENDAR

If I delete it according to your instructions I will have to delete all of them and the document will be empty. That's right?
Comment 3 David Jarvie 2017-10-14 19:06:38 UTC
Sorry I didn't reply sooner, but I somehow missed your update.

You're right. If expired.ics is empty on the new computer, you don't need to do any editing - you can simply copy expired.ics from the old computer and replace the empty one on the new computer.
Comment 4 Rafael Fernandes 2017-10-16 15:19:15 UTC
(In reply to David Jarvie from comment #3)
> Sorry I didn't reply sooner, but I somehow missed your update.
> 
> You're right. If expired.ics is empty on the new computer, you don't need to
> do any editing - you can simply copy expired.ics from the old computer and
> replace the empty one on the new computer.

OK David, I'll try this alternative. Very Thanks.
Comment 5 David Jarvie 2019-07-31 23:32:56 UTC
I tested the import of an expired alarms calendar with the latest version of KAlarm (version 2.12.5, which will soon be released as part of KDE Applications 19.08). This worked correctly, both when importing into an empty expired.ics and when expired.ics contained existing alarms.

If you see this problem again, please reopen this bug.

*** This bug has been marked as a duplicate of bug 374337 ***