[drwright] Don't use G_SPAWN_SEARCH_PATH
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [drwright] Don't use G_SPAWN_SEARCH_PATH
- Date: Sat, 20 Nov 2010 22:14:22 +0000 (UTC)
commit 3759945a5a080901d38887238465a568fd8e2d19
Author: Christian Persch <chpe gnome org>
Date: Thu Nov 18 20:29:40 2010 +0100
Don't use G_SPAWN_SEARCH_PATH
Specify the full path to the programme, instead.
src/Makefile.am | 3 ++-
src/gsd-typing-break-manager.c | 3 +--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index b2314bc..ae94d93 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,7 @@ NULL =
# Typing break
-bin_PROGRAMS = gnome-typing-monitor
+pkglib_PROGRAMS = gnome-typing-monitor
gnome_typing_monitor_SOURCES = \
main.c \
@@ -71,6 +71,7 @@ libtyping_break_la_SOURCES = \
libtyping_break_la_CPPFLAGS = \
-DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
+ -DPKGLIBDIR=\""$(pkglibdir)"\" \
$(AM_CPPFLAGS)
libtyping_break_la_CFLAGS = \
diff --git a/src/gsd-typing-break-manager.c b/src/gsd-typing-break-manager.c
index f4f3495..5d834c6 100644
--- a/src/gsd-typing-break-manager.c
+++ b/src/gsd-typing-break-manager.c
@@ -106,7 +106,7 @@ setup_typing_break (GsdTypingBreakManager *manager,
if (manager->priv->typing_monitor_pid == 0) {
GError *error;
- char *argv[] = { "gnome-typing-monitor", "-n", NULL };
+ char *argv[] = { PKGLIBDIR"/gnome-typing-monitor", "-n", NULL };
gboolean res;
error = NULL;
@@ -115,7 +115,6 @@ setup_typing_break (GsdTypingBreakManager *manager,
NULL,
G_SPAWN_STDOUT_TO_DEV_NULL
| G_SPAWN_STDERR_TO_DEV_NULL
- | G_SPAWN_SEARCH_PATH
| G_SPAWN_DO_NOT_REAP_CHILD,
NULL,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]