[Bug 51925] New: TeXLive linux binaries are launched incorrectly from Wine

WineHQ Bugzilla wine-bugs at winehq.org
Mon Oct 25 02:08:41 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=51925

            Bug ID: 51925
           Summary: TeXLive linux binaries are launched incorrectly from
                    Wine
           Product: Wine
           Version: 6.20
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ntdll
          Assignee: wine-bugs at winehq.org
          Reporter: oleh.nyk at gmail.com
      Distribution: ---

Linux TeXLive binaries can be successfully started, e.g., by WinEdt shell under
Wine. Nevertheless, TeXLive components use mktex.opt file to find out the
platform they are run on, based on environment variables. As Wine leaves
ComSpec variable set, mktex.opt deduces it is on Windows, but cannot find dirs
for fonts and metrics, hence puts temporary files in a working directory.

Steps to reproduce (assume TeXLive distribution is installed and working):

1. Unpack winedt-1.41e

http://ftp.itam.mx/pub/academico/investig/latex/LaTeXWin/winedt16.zip

2. Start winedt.exe and open any LaTeX file

3. Change LaTeX entry in menu to make it start LaTeX in XTerm, e.g. 

"z:\usr\bin\xterm" -T LaTeX -e /usr/bin/latex "%N%T"

4. Run LaTeX and observe *.tfm files created in the directory with LaTeX
document instead of the proper directories for this.

Here is a part of the output of "env | sort" in XTerm run from WinEdt:

...
CommonProgramFiles=C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=SHELTER
ComSpec=C:\windows\system32\cmd.exe
CPLUS_INCLUDE_PATH=/opt/kde3/lib64/qt3/include
DISPLAY=:0.0
FVWM_64=64
...


To avoid this, there should be a way to prohibit Wine to pass some Windows
environment variables to Unix binaries.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list