aports/testing/showmethekey/cli-exec-wrapper.patch
2022-03-12 00:22:18 +01:00

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;