mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
18 lines
677 B
Diff
18 lines
677 B
Diff
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Fri, 11 Mar 2022 23:56:33 +0100
|
|
Subject: [PATCH] Don't call pkexec directly
|
|
|
|
The goal is to allow users to use a method other than pkexec.
|
|
|
|
--- a/showmethekey-gtk/smtk-keys-emitter.c
|
|
+++ b/showmethekey-gtk/smtk-keys-emitter.c
|
|
@@ -361,7 +361,7 @@
|
|
emitter->cli = g_subprocess_new(
|
|
G_SUBPROCESS_FLAGS_STDIN_PIPE | G_SUBPROCESS_FLAGS_STDOUT_PIPE |
|
|
G_SUBPROCESS_FLAGS_STDERR_PIPE,
|
|
- error, "pkexec", INSTALL_PREFIX "/" PACKAGE_BINDIR "/showmethekey-cli", NULL);
|
|
+ error, INSTALL_PREFIX "/" PACKAGE_BINDIR "/showmethekey-cli-exec", NULL);
|
|
// emitter->error is already set, just return.
|
|
if (emitter->cli == NULL)
|
|
return;
|