From: Marco Pesenti Gritti Date: Mon, 7 Feb 2005 22:41:07 +0000 (+0000) Subject: Log gs env var X-Git-Tag: EVINCE_0_1_4~9 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=85c4818353b7f7125cf7aa43abe0cf84aacc40d8;p=evince.git Log gs env var 2005-02-07 Marco Pesenti Gritti * ps/ps-document.c: (start_interpreter): Log gs env var --- diff --git a/ChangeLog b/ChangeLog index 57a9a978..b8ef9da8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-02-07 Marco Pesenti Gritti + + * ps/ps-document.c: (start_interpreter): + + Log gs env var + 2005-02-07 Marco Pesenti Gritti * shell/ev-page-view.c: (ev_page_view_dispose): diff --git a/ps/ps-document.c b/ps/ps-document.c index c7263bc1..928e38c0 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 */