[gnome-remote-desktop] settings: Fix test RDP username override
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] settings: Fix test RDP username override
- Date: Wed, 8 Dec 2021 09:09:50 +0000 (UTC)
commit 49daad409f1799ea6cde2a5eed364e6aa2da8aca
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Nov 5 17:00:53 2021 +0100
settings: Fix test RDP username override
TEST was always used, and only if the password was set, lets make it a
bit more predictable.
src/grd-settings.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/grd-settings.c b/src/grd-settings.c
index be4b4d3..4560a37 100644
--- a/src/grd-settings.c
+++ b/src/grd-settings.c
@@ -137,14 +137,14 @@ char *
grd_settings_get_rdp_username (GrdSettings *settings,
GError **error)
{
- const char *test_password_override;
+ const char *test_username_override;
g_autofree char *credentials_string = NULL;
g_autoptr (GVariant) credentials = NULL;
char *username = NULL;
- test_password_override = g_getenv ("GNOME_REMOTE_DESKTOP_TEST_RDP_PASSWORD");
- if (test_password_override)
- return g_strdup ("TEST");
+ test_username_override = g_getenv ("GNOME_REMOTE_DESKTOP_TEST_RDP_USERNAME");
+ if (test_username_override)
+ return g_strdup (test_username_override);
credentials_string = secret_password_lookup_sync (GRD_RDP_CREDENTIALS_SCHEMA,
NULL, error,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]