From 05dcc6b397a21da72d46adc08c1cfa853e269cff Mon Sep 17 00:00:00 2001 From: Daniel Brotsky Date: Fri, 5 Jul 2024 21:51:33 -0700 Subject: [PATCH] Remove unneeded test script. --- linux-test.sh | 4 ---- src/secret_service.rs | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 linux-test.sh 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").