--- src/tilda.c.orig 2018-02-08 19:55:42 UTC
+++ src/tilda.c
@@ -12,6 +12,7 @@
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see .
*/
+#include
#define _POSIX_SOURCE /* feature test macro for signal functions */
#define _XOPEN_SOURCE /* feature test macro for popen */
@@ -52,7 +53,7 @@
#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -230,7 +231,7 @@ nomatch:
static GSList *getPids() {
GSList *pids = NULL;
FILE *ps_output;
- const gchar ps_command[] = "ps -C tilda -o pid=";
+ const gchar ps_command[] = "pgrep tilda";
gchar buf[16]; /* Really shouldn't need more than 6 */
if ((ps_output = popen (ps_command, "r")) == NULL) {