fix: restore TTY access for eval_password commands

Replace g_spawn_command_line_sync with g_spawn_sync with the
G_SPAWN_CHILD_INHERITS_STDIN flag.
This is actually needed to so that interactive commands can access the
terminal.
Otherwise they cannot ask the user for the passphrase.

Ref: f5787fb31f
Fixes: https://github.com/profanity-im/profanity/issues/2143
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
Michael Vetter
2026-04-02 13:33:51 +02:00
parent b56498adcb
commit c9a3823f13
2 changed files with 13 additions and 2 deletions

View File

@@ -385,6 +385,7 @@ cmd_connect(ProfWin* window, const char* const command, gchar** args)
// use eval_password if set
} else if (account->eval_password) {
gboolean res = account_eval_password(account);
ui_resize();
if (res) {
conn_status = cl_ev_connect_account(account);
free(account->password);