[tex-live] Fwd: tlpmgui on vista

Jjgod Jiang gzjjgod at gmail.com
Fri Feb 9 12:53:32 CET 2007


Oops, I forgot to reply to the mailing list again..

---------- Forwarded message ----------
From: Jjgod Jiang <gzjjgod at gmail.com>
Date: 2007-2-9 下午7:52
Subject: Re: [tex-live] tlpmgui on vista
To: tlu at technodat.com.pl


Hi Tomasz,

2007/2/9, Tomasz Łuczak <tlu at technodat.com.pl>:
> I'm sorry but I'm user WinXP Polish and English edition only and I have not
> possibility test tlpmgui on Chinese, Japanese, Slovakian, Russian, Spanish,
> German, French, Dutch, Portugese, Greek, Italian or other European, Asian,
> African etc. edition of Windows. It's impossible.
> I and tlpmgui team expect tests by TeX community, but not two days before
> sending image to production.

Please don't panic. ;) We are not asking that much, just a small fix. Let's see
the source code:

     96     if [info exists env(Temp)] then {
     97         if [file exists $env(Temp)] then {
     98             set envTemp [file attribute $env(Temp) -shortname]
     99             set temperror 0
    100         } else {
    101             set envTemp [pwd]
    102             if [file writable $envTemp] then {
    103                 set temperror 0
    104             } else {
    105                 set temperror 1
    106             }
    107         }
    108     } else {
    109         set envTemp [pwd]
    110         if [file writable $envTemp] then {
    111             set temperror 0
    112         } else {
    113             set temperror 1
    114         }
    115     }

First of all, I think this code can be simplified to:

     95     # path to temp dir
     96     set envTemp [pwd]
     97     if [info exists env(Temp)] then {
     98         if [file exists $env(Temp)] then {
     99             set envTemp [file attribute $env(Temp) -shortname]
    100         }
    101     }
    102
    103     if [file writable $envTemp] then {
    104         set temperror 0
    105     } else {
    106         set temperror 1
    107     }

Secondly, I think using [pwd] as fallback directory is not that useful,
since most of us are running tlpmgui from CD/DVD (Image), which
is, of cource, not writable. I suggest using something like C:\Temp
(or even a new directory named by timestamp, to avoid conflicts).

Any comments?

- jjgod.


More information about the tex-live mailing list