[gnome-documents] application: move the GJS environment setup to the startup script
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: move the GJS environment setup to the startup script
- Date: Mon, 20 Feb 2012 14:11:04 +0000 (UTC)
commit 41051e1e392cc82990f3e870fff819409af35e70
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Feb 20 15:06:15 2012 +0100
application: move the GJS environment setup to the startup script
src/application.js | 3 ---
src/gnome-documents-debug.in | 8 ++++++++
src/gnome-documents.in | 8 ++++++++
3 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 4b68508..7afd87e 100644
--- a/src/application.js
+++ b/src/application.js
@@ -61,9 +61,6 @@ Application.prototype = {
Gettext.textdomain('gnome-documents');
GLib.set_prgname('gnome-documents');
- GLib.setenv('GJS_DEBUG_OUTPUT', 'stderr', true);
- GLib.setenv('GJS_DEBUG_TOPICS', 'JS ERROR;JS LOG', true);
-
Global.settings = new Gio.Settings({ schema: 'org.gnome.documents' });
// TODO: subclass Gtk.Application once we support GObject inheritance,
diff --git a/src/gnome-documents-debug.in b/src/gnome-documents-debug.in
index f7989cb..4d6bdfa 100644
--- a/src/gnome-documents-debug.in
+++ b/src/gnome-documents-debug.in
@@ -18,4 +18,12 @@ else
export LD_LIBRARY_PATH= pkglibdir@:$LD_LIBRARY_PATH
fi
+if test x"$GJS_DEBUG_OUTPUT" = x ; then
+ export GJS_DEBUG_OUTPUT=stderr
+fi
+
+if test x"$GJS_DEBUG_TOPICS" = x ; then
+ export GJS_DEBUG_TOPICS="JS ERROR;JS LOG"
+fi
+
gdb --args @GJS_CONSOLE@ -I @pkgdatadir@/js -c "const Main = imports.main; Main.start();" "$@"
diff --git a/src/gnome-documents.in b/src/gnome-documents.in
index 79df19a..4811128 100644
--- a/src/gnome-documents.in
+++ b/src/gnome-documents.in
@@ -18,4 +18,12 @@ else
export LD_LIBRARY_PATH= pkglibdir@:$LD_LIBRARY_PATH
fi
+if test x"$GJS_DEBUG_OUTPUT" = x ; then
+ export GJS_DEBUG_OUTPUT=stderr
+fi
+
+if test x"$GJS_DEBUG_TOPICS" = x ; then
+ export GJS_DEBUG_TOPICS="JS ERROR;JS LOG"
+fi
+
@GJS_CONSOLE@ -I @pkgdatadir@/js -c "const Main = imports.main; Main.start();" "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]