mtx-texworks.lua can't find TeXworks on linux
![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
Running it gives: $ mtxrun -script texworks -start MTXrun | unable to locate TeXworks Though I've texworks on my path: $ which texworks /usr/bin/texworks I found that the file.split_path(os.getenv("PATH")) call returns a table with single member containing the full PATH variable (it assumes it is a semicolon separated list, but on linux it is a colon separated list). Even after getting around this, the executable name it is looking for is 'TeXworks' while it should be 'texworks'. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Khaled Hosny wrote:
Running it gives:
$ mtxrun -script texworks -start MTXrun | unable to locate TeXworks
Though I've texworks on my path:
$ which texworks /usr/bin/texworks
I found that the file.split_path(os.getenv("PATH")) call returns a table with single member containing the full PATH variable (it assumes it is a semicolon separated list, but on linux it is a colon separated list).
hm, that should be detected automatically; i'll check it
Even after getting around this, the executable name it is looking for is 'TeXworks' while it should be 'texworks'.
oh, so they changed it? good, as this mixed uppercase lowercase is annoying Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Hans Hagen wrote:
Khaled Hosny wrote:
Running it gives:
$ mtxrun -script texworks -start MTXrun | unable to locate TeXworks
Though I've texworks on my path:
$ which texworks /usr/bin/texworks
I found that the file.split_path(os.getenv("PATH")) call returns a table with single member containing the full PATH variable (it assumes it is a semicolon separated list, but on linux it is a colon separated list).
here the splitter works , can you send me the path string? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
On Thu, Nov 19, 2009 at 06:40:07PM +0100, Hans Hagen wrote:
Hans Hagen wrote:
Khaled Hosny wrote:
Running it gives:
$ mtxrun -script texworks -start MTXrun | unable to locate TeXworks
Though I've texworks on my path:
$ which texworks /usr/bin/texworks
I found that the file.split_path(os.getenv("PATH")) call returns a table with single member containing the full PATH variable (it assumes it is a semicolon separated list, but on linux it is a colon separated list).
here the splitter works , can you send me the path string?
$ echo $PATH /opt/texlive/2009/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/khaled/bin:/home/khaled/.local/bin -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Khaled Hosny wrote:
On Thu, Nov 19, 2009 at 06:40:07PM +0100, Hans Hagen wrote:
Hans Hagen wrote:
Khaled Hosny wrote:
Running it gives:
$ mtxrun -script texworks -start MTXrun | unable to locate TeXworks
Though I've texworks on my path:
$ which texworks /usr/bin/texworks
I found that the file.split_path(os.getenv("PATH")) call returns a table with single member containing the full PATH variable (it assumes it is a semicolon separated list, but on linux it is a colon separated list).
here the splitter works , can you send me the path string?
$ echo $PATH /opt/texlive/2009/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/khaled/bin:/home/khaled/.local/bin
ok, i see the problem (it's not just splitting at : or ; as in tex config files specs can bw much more complex); will be solved in next beta ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
On Thu, Nov 19, 2009 at 09:58:32PM +0100, Hans Hagen wrote:
ok, i see the problem (it's not just splitting at : or ; as in tex config files specs can bw much more complex); will be solved in next beta
The application launches now, but it is of no much use on linux since all typesetting commands are windows specific (mtxrun.cmd, cmd.exe etc.) Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Khaled Hosny wrote:
On Thu, Nov 19, 2009 at 09:58:32PM +0100, Hans Hagen wrote:
ok, i see the problem (it's not just splitting at : or ; as in tex config files specs can bw much more complex); will be solved in next beta
The application launches now, but it is of no much use on linux since all typesetting commands are windows specific (mtxrun.cmd, cmd.exe etc.)
Oh, I knew that, I have a local patch even (from when it was still TeXworks). I'll send my patch to Hans. Best wishes, Taco
participants (3)
-
Hans Hagen
-
Khaled Hosny
-
Taco Hoekwater