From b1fe66ea70d814b2c3adadab6c77ade43210eb18 Mon Sep 17 00:00:00 2001 From: Rex Hoffman Date: Sun, 24 Sep 2023 09:01:02 -0700 Subject: [PATCH] trying ci fix --- .github/workflows/dbus.xml | 31 +++++++++++++++++++++++++++++++ .setupkeystore.sh | 6 +++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/dbus.xml diff --git a/.github/workflows/dbus.xml b/.github/workflows/dbus.xml new file mode 100644 index 0000000..fa9510a --- /dev/null +++ b/.github/workflows/dbus.xml @@ -0,0 +1,31 @@ + + + + + system + + + + + + + + + /lib/dbus-1/dbus-daemon-launch-helper + + + /var/run/dbus/pid + + + + + + EXTERNAL + + + unix:path=/tmp/test_system_bus_socket + diff --git a/.setupkeystore.sh b/.setupkeystore.sh index 35ec5ba..4ee9cc6 100755 --- a/.setupkeystore.sh +++ b/.setupkeystore.sh @@ -3,8 +3,8 @@ keyring="$1" set -x -if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] && [ "$keyring" == "gnome" ]; then - export $(dbus-launch) +if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] && [ "$keyring" == "gnome" ]; then + export $(dbus-launch --config-file=${HOME}/github/workflow/dbus.xml) eval "$(echo '\n' | gnome-keyring-daemon --unlock)" echo xxx@gmail.com | secret-tool store --label="main" email address PASS=$(secret-tool lookup email address) @@ -25,7 +25,7 @@ if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] && [ "$keyring" == "kde" ]; t cp $GITHUB_WORKSPACE/.setupkeystore/* ~/.local/share/kwalletd chmod 600 ~/.local/share/kwalletd/* dbus-uuidgen --ensure - export $(dbus-launch) + export $(dbus-launch --config-file=${HOME}/github/workflow/dbus.xml) password=$(kwalletcli -f . -e address) echo Checking the secret can be retrieved. if [ "$password" != "xxx@gmail.com" ]; then