Bug 134065 - Calendar files are opened instead of imported to an existing calendar
Summary: Calendar files are opened instead of imported to an existing calendar
Status: RESOLVED UNMAINTAINED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 135534 138329 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-14 14:42 UTC by Pascal d'Hermilly
Modified: 2017-01-07 22:07 UTC (History)
2 users (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 Pascal d'Hermilly 2006-09-14 14:42:59 UTC
Version:           3.5.3 (using KDE 3.5.4, Kubuntu Package 4:3.5.4-0ubuntu2~dapper1 )
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-26-386

When I press a vcs file on the desktop or in konqueror then kontact with korganiser pops up. But I don't get any options to whether I want to import the file or just view the file as a seperate calendar. 
I have to go to files->import->import calendar and select the file before I get any options. Then it works just fine.
Comment 1 Allen Winter 2006-09-14 15:19:58 UTC
I think this a matter of adding the --import option to the file association of vcal (and ical also??).

So the file association would be korganizer --import %u

You can try that and see if it helps.

Reinhold, should we make this the default?
Comment 2 Reinhold Kainhofer 2006-09-14 15:27:35 UTC
Am Donnerstag, 14. September 2006 15:19 schrieb Allen Winter:
[bugs.kde.org quoted mail]

Probably, yes. If KOrganizer is run stand-alone, opening only the file should 
work fine. But inside kontact, the standard calendar is always loaded, so 
it's not really possible to open the file... Hmm, difficult problem.

Cheers,
Reinhold
Comment 3 Allen Winter 2006-09-29 23:58:47 UTC
SVN commit 590357 by winterz:

Import the calendar, by default.

This doesn't fully close the bug because the --import option doesn't work
if the user is running the KOrganizer part (i.e, within Kontact).
I need a super-guru to help me fix that.

Oh, and I'm removing the korganizer-import.desktop file because it isn't used.

CCBUGS: 134065


 D             korganizer-import.desktop  
 M  +1 -1      korganizer.desktop  


--- branches/KDE/3.5/kdepim/korganizer/korganizer.desktop #590356:590357
@@ -61,7 +61,7 @@
 Comment[zh_CN]=日历和日程安排程序
 Comment[zh_TW]=行事曆與排程軟體
 Comment[zu]=Ikhalenda kanye Neprogramu Yokugcina isikhathi
-Exec=korganizer %u
+Exec=korganizer --import %u
 Icon=korganizer
 Path=
 DocPath=korganizer/index.html
Comment 4 Will Stephenson 2006-10-12 17:34:11 UTC
The solution isn't as simple as changing korganizer.desktop to always --import, as this prevents launching korganizer with kdeinit (alt+f2) - it execs korganizer with the args found in the desktop file, so it fails to start when the <url> arg to --import is not found.  

Since korganizer --import asks what to do with the file, this should be used for text/calendar and related mimetypes.  Longer term make korganizer %u import by default and add an --open switch to only open files without asking, as Reinhold suggests.
Comment 5 Bram Schoenmakers 2006-10-12 21:43:23 UTC
*** Bug 135534 has been marked as a duplicate of this bug. ***
Comment 6 Alon Bar-Lev 2006-10-12 21:52:06 UTC
Well...
Users should be notified... It made my KOrganizer not to work...
Please consider modifying the subject so this issue may be found...
Something like "KOrganizer fails to start".
Comment 7 Allen Winter 2006-10-13 18:53:16 UTC
SVN commit 595238 by winterz:

Fix the launching of KOrganizer.
I sent these changes to kde-packager@kde.org so hopefully they will
be put out to the distros soonest.

BUGS: 135513,135534
CCBUGS: 134065


 M  +1 -1      Makefile.am  
 A             korganizer-import.desktop   [TRAILING SPACE]
 M  +1 -2      korganizer.desktop  


--- branches/KDE/3.5/kdepim/korganizer/Makefile.am #595237:595238
@@ -171,7 +171,7 @@
 	$(XGETTEXT) `find . -name "*.cpp" -o -name "*.h"` -o $(podir)/korganizer.pot
 	rm -f tips.cpp
 
-xdg_apps_DATA = korganizer.desktop
+xdg_apps_DATA = korganizer.desktop korganizer-import.desktop
 
 kde_kcfg_DATA = korganizer.kcfg
 
--- branches/KDE/3.5/kdepim/korganizer/korganizer.desktop #595237:595238
@@ -1,6 +1,5 @@
 [Desktop Entry]
 Encoding=UTF-8
-MimeType=text/calendar;text/x-vcalendar;
 Comment=Calendar and Scheduling Program
 Comment[af]=Kalender en Skedulering Program
 Comment[ar]=برنامج الجدولة والتقويم
@@ -61,7 +60,7 @@
 Comment[zh_CN]=日历和日程安排程序
 Comment[zh_TW]=行事曆與排程軟體
 Comment[zu]=Ikhalenda kanye Neprogramu Yokugcina isikhathi
-Exec=korganizer --import %u
+Exec=korganizer
 Icon=korganizer
 Path=
 DocPath=korganizer/index.html
Comment 8 Reinhold Kainhofer 2006-11-02 18:55:32 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 9 Bram Schoenmakers 2006-12-04 08:24:45 UTC
*** Bug 138329 has been marked as a duplicate of this bug. ***
Comment 10 Nicolas Dietrich 2010-03-01 13:17:57 UTC
Note - I just opened the related bug, which addresses only one point:

Bug 229021 -  KOrganizer command line commands for importing events don't work when running inside Kontact
Comment 11 Denis Kurz 2016-09-24 18:52:44 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of korganizer (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 12 Denis Kurz 2017-01-07 22:07:16 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.