summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/texdoc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/scripts/texdoc')
-rw-r--r--Master/texmf/scripts/texdoc/config.tlu4
-rw-r--r--Master/texmf/scripts/texdoc/constants.tlu2
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