diff --git a/linux-test.sh b/linux-test.sh deleted file mode 100644 index 5df5ceb..0000000 --- a/linux-test.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -rm -f $HOME/.local/share/keyrings/* -echo -n "test" | gnome-keyring-daemon --unlock -cargo test --verbose diff --git a/src/secret_service.rs b/src/secret_service.rs index e80fb19..3367d3c 100644 --- a/src/secret_service.rs +++ b/src/secret_service.rs @@ -49,9 +49,8 @@ be aware that there are known issues with getting dbus and secret-service and the gnome keyring to work properly in headless environments. For a quick workaround, look at how this project's -[CI workflow](https://github.com/hwchen/keyring-rs/blob/master/.github/workflows/build.yaml) -uses the -[linux-test.sh](https://github.com/hwchen/keyring-rs/blob/master/linux-test.sh) script; +[CI workflow](https://github.com/hwchen/keyring-rs/blob/master/.github/workflows/ci.yaml) +starts the Gnome keyring unlocked with a known password; a similar solution is also documented in the [Python Keyring docs](https://pypi.org/project/keyring/) (search for "Using Keyring on headless Linux systems").