diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-02-20 12:13:10 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-02-20 12:13:10 +0000 |
commit | d93f26a56cb1c6ada1ce069fde370a8eda647934 (patch) | |
tree | 91f94645bd254072273c5cfb95c84f7ed3bce312 /Master/texmf/scripts | |
parent | 67f5875540425e88e9f728416d770a2235a5ce86 (diff) |
texdoc 0.64 fixing bug when DISPLAY is unset on Unix.
git-svn-id: svn://tug.org/texlive/trunk@17107 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts')
-rw-r--r-- | Master/texmf/scripts/texdoc/config.tlu | 4 | ||||
-rw-r--r-- | Master/texmf/scripts/texdoc/constants.tlu | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf/scripts/texdoc/config.tlu b/Master/texmf/scripts/texdoc/config.tlu index 3ff14178f8c..5ddc77e59bc 100644 --- a/Master/texmf/scripts/texdoc/config.tlu +++ b/Master/texmf/scripts/texdoc/config.tlu @@ -382,10 +382,10 @@ function desktop_environment_viewer() return '(gnome-open %s) &' end if not is_in_path('xprop') then return end - local xprop_fh = io.popen('xprop -root _DT_SAVE_MODE') + local xprop_fh = io.popen('xprop -root _DT_SAVE_MODE 2>/dev/null') local xprop_out = xprop_fh:read('*line') xprop_fh:close() - if string.find(xprop_out, '= "xfce4"$') then -- xfce + if xprop_out and string.find(xprop_out, '= "xfce4"$') then -- xfce return '(exo-open %s) &' end end diff --git a/Master/texmf/scripts/texdoc/constants.tlu b/Master/texmf/scripts/texdoc/constants.tlu index 837e3c0534c..24163ea556b 100644 --- a/Master/texmf/scripts/texdoc/constants.tlu +++ b/Master/texmf/scripts/texdoc/constants.tlu @@ -15,7 +15,7 @@ load_env(L, { -- progname and version fullname = arg[0] progname = 'texdoc' -version = '0.63' +version = '0.64' -- make sure to update setup_config_from_cl() accordingly -- and set a default value in setup_config_from_defaults() if relevant |