Fix GNOME Calendar date handoff

This commit is contained in:
Gabriel Brown
2026-08-17 11:48:11 -04:00
parent 2728fb08fb
commit f9cc15fb96
2 changed files with 5 additions and 1 deletions
@@ -169,7 +169,9 @@ Singleton {
function openCalendar(date: date): void { function openCalendar(date: date): void {
const target = date && !Number.isNaN(date.getTime()) ? date : root.selectedDate; const target = date && !Number.isNaN(date.getTime()) ? date : root.selectedDate;
Quickshell.execDetached(["gnome-calendar", "--date", root.dateKey(target)]); // GNOME Calendar passes this value to g_date_time_new_from_iso8601(),
// which requires a time and timezone rather than a bare YYYY-MM-DD.
Quickshell.execDetached(["gnome-calendar", "--date", target.toISOString()]);
} }
function join(event: var): void { function join(event: var): void {
@@ -48,6 +48,8 @@ for component in AgendaPane AgendaEvent NotificationSummary; do
rg -q "${component} 1.0 ${component}.qml" config/dot/quickshell/modules/datemenu/qmldir \ rg -q "${component} 1.0 ${component}.qml" config/dot/quickshell/modules/datemenu/qmldir \
|| fail "$component is not registered" || fail "$component is not registered"
done done
rg -q 'gnome-calendar.*--date.*toISOString' config/dot/quickshell/services/CalendarAgenda.qml \
|| fail 'GNOME Calendar date handoff is not a complete ISO-8601 timestamp'
qs ipc call calendar-agenda fixture upcoming >/dev/null qs ipc call calendar-agenda fixture upcoming >/dev/null
jq -e '.capsuleVisible == true and .capsuleText == "12m"' \ jq -e '.capsuleVisible == true and .capsuleText == "12m"' \