[Wine] No wine command

Martin Gregorie martin at gregorie.org
Sun Aug 22 10:39:51 CDT 2010

On Sat, 2010-08-21 at 06:16 -0500, CheatCat wrote:
> Distro: Arch Linux (Dunno what version), I have also tried Gentoo an that is same problem there.
> I installed by downloading the source and compile it with wineinstall.
> The version I use is 1.3.0, I have tried different versions and I doesn't work with them either.
> When I said console I mean the terminal.
> ~/Program/wine/wine exists that is there I have install wine.
> If I doubleclick on a exe file it run on wine since I tell it to open exe files with ~/Program/wine/wine.
> If I type wineserver -p the command are not found. It is running when I look in System Monitor.
> I don't have wine in the app menu.
> So I need a shell script? I think I know how to do a shell script.
> Should I made a shell script for every program I wanna run?
I do, but then again I've been using Unices for getting on for two
decades and Linux for the last ten years, so to me writing a shell
script seems like an easy way to package a few commands. I use something
like this:

==============================script file=============================
# Using the first line shown above and making the script executable
# with 'chmod u+x script_file'  means you can run it by typing 
# 'script_file'. I make a directory called bin in my login directory,
# put the script there and add the line:
# 'export PATH=~/bin:$PATH' as the last line in ~/.bash_profile so
# the shell will look in ~/bin for the script.
# Set WINEPREFIX  -I use a separate prefix for each app or set of
# closely related apps:
export WINEPREFIX=~/.wine_myapp 

# Change to the directory where the app lives:
cd $WINEPREFIX/drive_c/Program\ Files/MyApp\ folder

# put lines here to turn on debugging, etc or do app-specific stuff

# Run the app
=========================end of script file===========================

Now you have a script you can run it from the command line or use it as
the command run by a launcher - this is a lot easier than trying to put
the WINEPREFIX setting, the cd and the wine command into the launcher's
command line.

Without all my explanatory comments a typical wrapper script is only
three or four lines.


More information about the wine-users mailing list