[gnome-documents] application: set env vars for gjs debug messages at startup
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: set env vars for gjs debug messages at startup
- Date: Mon, 16 Jan 2012 18:30:16 +0000 (UTC)
commit 124ba2d09d030e24c263078866a387882fe76151
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 16 13:13:49 2012 -0500
application: set env vars for gjs debug messages at startup
Don't assume we were launched from a shell that sets these for us.
src/application.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 4613793..865954d 100644
--- a/src/application.js
+++ b/src/application.js
@@ -61,6 +61,9 @@ 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]