Announcement

Collapse
No announcement yet.

Set environment variable in WINE

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Set environment variable in WINE

    I try to install a program (Modelsim XE) with wine. Everything runs ok, except that the program requires to set the environment variable LM_LICENSE_FILE to point to a licence.dat file. I've edited the files /etc/profile and .bashrc and added at the end the line
    Code:
    LM_LICENSE_FILE=/home/myname/license.dat
    It seems though that it is not recognized by the program. How can i set this?

    #2
    Re: Set environment variable in WINE

    WINE can deal with linux ENV vars: http://www.winehq.org/site/docs/wine...ment-variables
    But your app may not be picking them up from /etc/profile - in this case, just write a quick shell script to launch your app for you.

    Something like:

    Code:
    #!/bin/bash
    export LM_LICENSE_FILE=/home/myname/license.dat
    /usr/bin/wine /full/path/to/my/app.exe
    Then chmod +x the shell script and give it a try.

    Good luck!

    Comment

    Working...
    X