We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

icalconverter export failed | How to set default calendar ?

asked 2016-08-06 09:44:16 +0300

ds2k5 gravatar image

updated 2016-12-09 09:53:38 +0300

jiit gravatar image

Hello,

using: SailfishOS 2.0.2.43

i tryed to export my (local) calendar.

[nemo@Sailfish ~]$ icalconverter export ~/Documents/calendar.ics -d
[W] mKCal::ExtendedCalendar::defaultStorage:2057 - Unable to create calendar database directory: "/home/nemo/.local/share/system/privileged/Calendar/mkcal" 
[C] mKCal::SqliteStorage::open:188 - sqlitestorage.cpp: 188 - sqlite3_open error: 14 on database "/home/nemo/.local/share/system/privileged/Calendar/mkcal/db" 
[C] mKCal::SqliteStorage::open:189 - sqlitestorage.cpp: 189 - unable to open database file 
[W] {anonymous}::defaultLocalCalendarNotebook:85 - No default local calendar notebook found! 
[W] NemoCalendarImportExport::constructExportIcs:514 - No default notebook exists or invalid notebook uid specified: "" 
[W] main:828 - No data to export! 

[nemo@Sailfish ~]$ ls -la /home/nemo/.local/share/system/privileged/Calendar/mkcal 
ls: cannot access /home/nemo/.local/share/system/privileged/Calendar/mkcal: Permission denied

[nemo@Sailfish ~]$ devel-su

[root@Sailfish nemo]# ls -la /home/nemo/.local/share/system/privileged/Calendar/mkcal
total 40
drwxr-xr-x 2 nemo privileged  4096 Aug  6 09:07 .
drwxr-xr-x 3 nemo privileged  4096 May 13 14:15 ..
-rw-r--r-- 1 nemo privileged 28672 Aug  6 09:07 db
-rw-r--r-- 1 nemo privileged     0 Aug  6 09:07 db.changed

What did i wrong ? How to set default calendar ?

Thanks

edit retag flag offensive close delete

Comments

And if you give debugging flag -v instead of -d (destructive, only for import what I can tell)? Do you see something more informative then?

ljo ( 2016-08-06 11:29:53 +0300 )edit

try calling icalconverter as root

bomo ( 2016-08-11 21:25:42 +0300 )edit

try calling icalconverter as root

this works, thanks, but not the entry's from user: nemo in the export file.

ds2k5 ( 2016-08-12 10:12:56 +0300 )edit

Maybe it is then picking the wrong DB, is it possible to specify the correct (nemo's not root's) DB manually?

bomo ( 2016-08-12 10:23:41 +0300 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2016-12-08 17:13:38 +0300

decon gravatar image

You need to call it with root permissions but still preserve environment for user nemo:

devel-su -p icalconverter export calendar.ics
edit flag offensive delete publish link more
0

answered 2016-08-11 20:12:27 +0300

ds2k5 gravatar image
[nemo@Sailfish ~]$ icalconverter export ~/Documents/calendar.ics -v
[W] mKCal::ExtendedCalendar::defaultStorage:2057 - Unable to create calendar database directory: "/home/nemo/.local/share/system/privileged/Calendar/mkcal" 
[C] mKCal::SqliteStorage::open:188 - sqlitestorage.cpp: 188 - sqlite3_open error: 14 on database "/home/nemo/.local/share/system/privileged/Calendar/mkcal/db" 
[C] mKCal::SqliteStorage::open:189 - sqlitestorage.cpp: 189 - unable to open database file 
[W] {anonymous}::defaultLocalCalendarNotebook:85 - No default local calendar notebook found! 
[W] NemoCalendarImportExport::constructExportIcs:514 - No default notebook exists or invalid notebook uid specified: "" 
[W] main:828 - No data to export! 
edit flag offensive delete publish link more

Comments

as decon states above, you need to run it as privileged nemo user via devel-su -p icalconverter export ~/Documents/calendar.ics -v

chris.adams ( 2016-12-12 08:10:06 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2016-08-06 09:44:16 +0300

Seen: 291 times

Last updated: Dec 08 '16