mrvladus / Errands

Todo application for those who prefer simplicity.
MIT License
274 stars 65 forks source link

[BUG] #239

Closed TobTobXX closed 3 months ago

TobTobXX commented 3 months ago

Describe the bug CalDAV Sync doesn't work:

[tobtobxx@LapTobTob:~]$ flatpak run io.github.mrvladus.List
[DEBUG] Starting Errands 45.1.8
[DEBUG] Creating actions
[DEBUG] Initialize GSettings
[DEBUG] Lists: Update UI...
[INFO] Sync: Initialize sync provider
[INFO] Sync: Initialize 'CalDAV' sync provider
[DEBUG] Sync: Checking credentials
Exception in thread Thread-1 (sync):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/app/share/errands/errands/lib/sync/sync.py", line 55, in sync
    self.init(self.window)
  File "/app/share/errands/errands/lib/sync/sync.py", line 38, in init
    self.provider = SyncProviderCalDAV(window=self.window, testing=testing)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/errands/errands/lib/sync/providers/caldav.py", line 25, in __init__
    if not self._check_credentials():
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/errands/errands/lib/sync/providers/caldav.py", line 36, in _check_credentials
    self.password: str = GSettings.get_secret(self.name)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/errands/errands/lib/gsettings.py", line 56, in get_secret
    return Secret.password_lookup_sync(SECRETS_SCHEMA, {"account": account}, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-dbus-error-quark: The name org.freedesktop.secrets was not provided by any .service files (2)

To Reproduce Steps to reproduce the behavior:

  1. Set up CalDAV sync
  2. Restart the App.

Expected behavior Sync works

Screenshots and screencasts (Graphically, the app works, except for opening the preferences. But the spinner is always spinning and it doesn't sync.)

OS info:

Additional context I can provide any additional context if needed, even my NixOS configuration.

TobTobXX commented 3 months ago

Hmm... nevermind, I had gnome keyring disabled (I think it had some conflict with my yubikey). I re-enabled it and now Errands work and my Yubikey apparently too.