OESF Portables Forum

General Forums => General Discussion => Topic started by: owen on August 11, 2004, 12:56:37 am

Title: File association / beaming
Post by: owen on August 11, 2004, 12:56:37 am
Is there a way to "associate" a file with an application?  In particular, when I receive an IR beam containing an event, I would like my Z to add that event to my KO/PI calendar, and not to the default Sharp DTM calendar application.  How might I set this up?

Thanks in advance

Owen
--
Z CL760 & Cacko ROM 1.21b
Title: File association / beaming
Post by: mikew on August 11, 2004, 03:48:26 am
Owen

Suggest that you add the beamed event to the default DTM calendar application and then use KO/Pi Sharp-DTM sync option to get it into Korganiser.

Mike
Title: File association / beaming
Post by: doseas on August 11, 2004, 05:43:05 pm
Quote
Is there a way to "associate" a file with an application?
Owen,

The way to associate a file with an application is to register the app for a particular MIME type.  To do so, first you need to define the MIME type in /home/QtPalmtop/etc/mime.types.  Usually, calendar info is exchanged via vCalendar file format, which is already defined as text/x-vCalendar, with a .vcs extension.  

Then, you need to edit the application's .desktop file in /home/QtPalmtop/apps/<tab_name>, where <tab_name> is the name of the tab that the app's icon appears on (ex: Applications).  The line you need to edit will look like:
MimeType=text/x-vCalendar.
You would need to add the line to the new app's .desktop & remove it from the old app's .desktop to change associations.  Finally, you need to refresh the Launcher or restart Qtopia for the change to take effect.


All that being said, I don't see a current association for .vcs files to the Sharp Calendar app, so something else must be at work here, if the files are automagically added to the Calendar when they are received.
Title: File association / beaming
Post by: owen on August 12, 2004, 09:00:09 am
Mikew: Thanks for the suggestion to sync with the Sharp DTM app.  That is what I have been doing, but I have found it unreliable - and occasionally lose all my calendar data.  That was why I was trying to find a way to get the incoming beamed appointment straight into KO/PI. (I'd welcome advice on which option for handling conflicts I should be using: I'm not sure I get the difference exactly.)

Doseas: thank for the tip.  Like you say, something else must be at work here, because the incoming appointment does go automagically into the Sharp calendar app.

Can anybody fill in the missing pieces here?

Owen
Title: File association / beaming
Post by: mikew on August 13, 2004, 04:14:29 am
Owen

I agree DTM sync is not reliable, most of my appointments originate in Outlook/Exchange, so I just delete the DTM files, when I hit a problem, I copy these files prior to a sync, whenever I have any originating in KO/Pi.

I also generated a 'date format error', when I kept changing the date of an appointment, originating in KO/Pi.

Mike