Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-02-07 22:41:07 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-02-07 22:41:07 (GMT)
commit85c4818353b7f7125cf7aa43abe0cf84aacc40d8 (patch)
tree05e518fc8a99e1c501465a1602c4065ee0ed1ed2
parent29c8dda6046a5038a4d894ca2581199f217cf750 (diff)
Log gs env var
2005-02-07 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (start_interpreter): Log gs env var
-rw-r--r--ChangeLog6
-rw-r--r--ps/ps-document.c11
2 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 57a9a97..b8ef9da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-02-07 Marco Pesenti Gritti <marco@gnome.org>
+ * ps/ps-document.c: (start_interpreter):
+
+ Log gs env var
+
+2005-02-07 Marco Pesenti Gritti <marco@gnome.org>
+
* shell/ev-page-view.c: (ev_page_view_dispose):
* shell/ev-view.c: (ev_view_finalize):
* shell/ev-window.c: (ev_window_setup_document),
diff --git a/ps/ps-document.c b/ps/ps-document.c
index c7263bc..928e38c 100644
--- a/ps/ps-document.c
+++ b/ps/ps-document.c
@@ -784,6 +784,12 @@ start_interpreter(PSDocument * gs)
return -1;
}
+ gv_env = g_strdup_printf("GHOSTVIEW=%ld %ld",
+ gdk_x11_drawable_get_xid(gs->pstarget),
+ gdk_x11_drawable_get_xid(gs->bpixmap));
+
+ LOG ("Launching ghostview with env %s", gv_env)
+
gs->busy = TRUE;
gs->interpreter_pid = fork();
switch (gs->interpreter_pid) {
@@ -819,13 +825,8 @@ start_interpreter(PSDocument * gs)
}
}
- gv_env = g_strdup_printf("GHOSTVIEW=%ld %ld",
- gdk_x11_drawable_get_xid(gs->pstarget),
- gdk_x11_drawable_get_xid(gs->bpixmap));
putenv(gv_env);
- LOG ("Launching ghostview with env %s", gv_env)
-
/* change to directory where the input file is. This helps
* with postscript-files which include other files using
* a relative path */