[Wine] Re: Running programs in wine that are in the PATH

vitamin wineforum-user at winehq.org
Sat Jun 14 20:55:39 CDT 2008


KentonBomb wrote:
> I do alot of work with the Autoit V3 scripting language (http://autoitscript.com) which is a windows-based high-level language with most of the functionality of more mainstream languages [/walking billboard]
> 
> I used this language as a demonstration.
> 
> It seems like running programs in Wine do not respect the Linux PATH. It must be ran using the entire path I.E running "firefox", which would work in the terminal, does not work at all. running "/usr/bin/firefox" works fine. 
> 
> 
> Code:
> 
> Run("firefox")
> 
> 
> 
> Doesn't work
> 
> Code:
> 
> Run("/usr/bin/firefox")
> 
> 
> 
> Does work.
> 
> Is this a bug, or could this be added in the future?
> 
> Thanks.


This is not a bug this is by design. Wine has it's own PATH and does not use the PATH from the environment.

If you want to run arbitrary programs that are on UNIX PATH - start them with '/bin/sh -c program'







More information about the wine-users mailing list