Closed ghost closed 7 years ago
vdirsyncer does not expand environment variables. Hard coding the path should work fine.
Fine, it works. Thank you.
It may not be the right place to ask so I will move my post if it bothers, but now I don't understand why there isn't any event in khal when I open it. I have run vdirsyncer sync
and the .calendars/google/ direcory contain a directory with my mail address containing *.ics files.
Here is my vdirsyncer config:
[general]
status_path = "/home/focal/.config/vdirsyncer/status/"
[pair google_calendar]
a = "google_calendar_remote"
b = "google_calendar_local"
collections = ["nicolas.scottod@gmail.com"]
conflict_resolution = "a wins"
[storage google_calendar_remote]
type = "google_calendar"
token_file = "/home/focal/.config/vdirsyncer/token_file"
client_id = "xxx"
client_secret = "xxx"
#start_date = null
#end_date = null
#item_types = []
[storage google_calendar_local]
type = "filesystem"
path = "/home/focal/.calendars/google/"
fileext = ".ics"
And here is my khal.conf:
[calendars]
[[google]]
path = ~/.calendars/google/
[locale]
local_timezone= Europe/Paris
default_timezone= Europe/Paris
timeformat= %H:%M
dateformat= %d.%m.
longdateformat= %d.%m.%Y
datetimeformat= %d.%m. %H:%M
longdatetimeformat= %d.%m.%Y %H:%M
You need to change the path from ~/.calendars/google/
to that directory that is equal to your email address. Khal wants the path to the folder that directly contains the ICS files.
Than you!
Hello,
I'm trying to sync my google calendar using the tutorial. During the discovering process my browser is opened and google asked me if I want to allow vdirsyncer to manage my calendar. So I click yes, and then it a code is displayed, vdirsyncer is waiting for me to paste it in it and so I do. Then I get an error message:
With -vdebug:
I use vdirsyncer 0.14.0-1 installer on Archlinux from Aur repository, reading the debug log I guess it runs Python version 3.5.
And here is my config file:
And $XDG_CONFIG_HOME is set.