fix org-caldav: pre-create inbox soubory před sync (fromcal bug workaround)

This commit is contained in:
2026-02-24 22:11:10 +01:00
parent d7d925ab29
commit bbbb5ec803

View File

@@ -1777,8 +1777,16 @@ current frame."
3. Rodina: read-only → family-calendar.org (login: family)"
(interactive)
;; Vytvoř caldav/ adresář pokud neexistuje (mimo org-agenda-files)
;; Vytvoř caldav/ adresář a prázdné inbox soubory pokud neexistují
;; (org-caldav někdy odmítne vytvořit soubor sám od sebe)
(make-directory "~/org/caldav" t)
(dolist (f '("~/org/caldav/suky.org"
"~/org/caldav/placeholders.org"
"~/org/caldav/family.org"
"~/org/caldav/klara.org"))
(unless (file-exists-p (expand-file-name f))
(with-temp-file (expand-file-name f)
(insert "#+TITLE: CalDAV sync\n#+STARTUP: overview\n"))))
;; --- 1. Osobni - Suky ---
;; Stahuj události ze serveru → ~/org/caldav/suky.org (mimo agendu)