23 lines
881 B
Plaintext
23 lines
881 B
Plaintext
$OpenBSD: patch-src-tilda_c,v 1.4 2020/03/04 17:57:53 bket Exp $
|
|
Index: src/tilda.c
|
|
--- src/tilda.c.orig
|
|
+++ src/tilda.c
|
|
@@ -13,8 +13,6 @@
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
-#define _POSIX_SOURCE /* feature test macro for signal functions */
|
|
-#define _XOPEN_SOURCE /* feature test macro for popen */
|
|
|
|
/*
|
|
* This message is shown in a modal dialog when tilda starts and there is a problem parsing the configuration file.
|
|
@@ -232,7 +230,7 @@ nomatch:
|
|
static GSList *getPids() {
|
|
GSList *pids = NULL;
|
|
FILE *ps_output;
|
|
- const gchar ps_command[] = "ps -C tilda -o pid=";
|
|
+ const gchar ps_command[] = "/usr/bin/pgrep tilda";
|
|
gchar buf[16]; /* Really shouldn't need more than 6 */
|
|
|
|
if ((ps_output = popen (ps_command, "r")) == NULL) {
|