Repository navigation
Keyring Setup
Mimick stores your Immich API key securely in your desktop's keyring. On GNOME and KDE this works out of the box. On other desktops -- Hyprland, Sway, XFCE, i3, Cosmic, and similar compositors -- the keyring portal may not be wired up by default, causing the error:
Could Not Save API Key
This page explains how to fix it.
Mimick uses the oo7 keyring library, which stores credentials through one of two backends:
-
Portal backend (Flatpak sandbox) --
uses
org.freedesktop.portal.Secret, exposed bygnome-keyringorkwallet. -
D-Bus Secret Service (native installs) --
uses
org.freedesktop.secrets, the standard Linux Secret Service API.
Both backends need a keyring daemon and correct portal wiring.
GNOME and KDE ship .portal files that register their keyring
daemons automatically (UseIn=gnome / UseIn=kde).
On other compositors, xdg-desktop-portal skips those files, so
the Secret portal is never exposed.
Regardless of your desktop, ensure these are installed:
- gnome-keyring (or kwallet if you prefer the KDE stack)
- libsecret
- xdg-desktop-portal
- Your compositor's portal backend (e.g.,
xdg-desktop-portal-hyprland,xdg-desktop-portal-wlr,xdg-desktop-portal-gtk)
Confirm the keyring daemon is running:
systemctl --user status gnome-keyring-daemonCreate (or edit) ~/.config/xdg-desktop-portal/portals.conf:
[preferred]
default=hyprland;gtk
org.freedesktop.impl.portal.Secret=gnome-keyringReplace
hyprlandwithwlror your compositor's portal name.
Then restart the portal:
systemctl --user restart xdg-desktop-portal- Install
xdg-desktop-portal-xapp(in addition toxdg-desktop-portal-gtk). - Edit
/usr/share/xdg-desktop-portal/xfce-portals.conf:
[preferred]
default=xapp;gtk;-
Remove any overriding files that may conflict:
~/.config/xdg-desktop-portal/portals.conf/etc/xdg-desktop-portal/portals.conf
-
Restart the portal:
systemctl --user restart xdg-desktop-portalCreate ~/.config/xdg-desktop-portal/portals.conf:
[preferred]
default=gtk
org.freedesktop.impl.portal.Secret=gnome-keyringThen restart:
systemctl --user restart xdg-desktop-portalIf you are using the COSMIC desktop, install the COSMIC portal backend and configure:
[preferred]
default=cosmic;gtk
org.freedesktop.impl.portal.Secret=gnome-keyringAfter restarting the portal, test that the Secret portal is exposed:
busctl --user call org.freedesktop.portal.Desktop \
/org/freedesktop/portal/desktop \
org.freedesktop.DBus.Properties Get \
ss org.freedesktop.portal.Secret versionA successful result returns the portal version. If it errors with "Unknown interface", the portal is still not configured.
Then relaunch Mimick and try saving your API key again.
If you have configured the portal but the error persists:
- Check logs: run Mimick from a terminal to see detailed keyring errors.
- Ensure gnome-keyring has an unlocked "default" collection:
secret-tool store --label='test' test-key test-value
secret-tool lookup test-key test-value- File an issue at github.com/nicx17/mimick/issues with the error output from step 1.