On expiry calcurse-sync starts calcurse-relogin, a notification that opens the consent page when clicked and catches the OAuth code on 127.0.0.1:8749. dunst's left-click now runs a notification's action before closing it.
8 lines
203 B
Desktop File
8 lines
203 B
Desktop File
[Unit]
|
|
Description=Ask to renew the calcurse Google Calendar login
|
|
|
|
[Service]
|
|
# simple: the prompt waits for a click without a start timeout
|
|
Type=simple
|
|
ExecStart=%h/.local/bin/calcurse-relogin --prompt
|