2017-10-26 21:20:01 +00:00
|
|
|
= Wine
|
|
|
|
|
|
|
|
http://winehq.org/[Wine] is an open source implementation of the Windows
|
|
|
|
API on top of X and OpenGL.
|
|
|
|
|
2022-09-17 06:45:19 +00:00
|
|
|
Wine emulates the Windows runtime environment by translating Windows
|
|
|
|
system calls into POSIX-compliant system calls, recreating the directory
|
|
|
|
structure of Windows systems, and providing alternative implementations
|
|
|
|
of Windows system libraries, system services through https://wiki.winehq.org/Wineserver[wineserver].
|
2018-04-06 13:42:54 +00:00
|
|
|
|
2018-07-29 11:01:46 +00:00
|
|
|
== Packages
|
2017-10-26 21:20:01 +00:00
|
|
|
|
|
|
|
Fedora's Wine packages are split up to allow for smaller installations.
|
|
|
|
The `wine` meta package will bring with it the most important components
|
2022-09-16 11:41:23 +00:00
|
|
|
of Wine.
|
|
|
|
Expert users may want to pick specific components from the list
|
|
|
|
https://packages.fedoraproject.org/pkgs/wine/[here].
|
|
|
|
The current versions of the Wine packages can also be seen on the https://packages.fedoraproject.org/pkgs/wine/wine/[Fedora packages application].
|
2017-10-26 21:20:01 +00:00
|
|
|
|
2022-09-17 06:45:19 +00:00
|
|
|
[[configuration-files]]
|
|
|
|
== Configurations files
|
|
|
|
|
|
|
|
The default wine configuration files is stored in your `$HOME` directory:
|
|
|
|
|
|
|
|
```
|
2022-10-03 12:11:31 +00:00
|
|
|
$HOME/.wine
|
2022-09-17 06:45:19 +00:00
|
|
|
```
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
TIP: Different prefixes can be used as descibed in the
|
|
|
|
xref:#working-with-prefix[wine prefix] section lower in this document.
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
[[wine-desktop-files]]
|
2022-10-03 08:53:00 +00:00
|
|
|
== Wine desktop files
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables[Wine respects the XDG Base Directory Specification].
|
|
|
|
`$XDG_DATA_HOME` defines the base directory relative to which
|
|
|
|
user-specific data files should be stored. If `$XDG_DATA_HOME` is either
|
|
|
|
not set or empty, it defaults to `$HOME/.local/share`.
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
Wine stores its desktop files in `$XDG_DATA_HOME/applications/wine`.
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
[[gui-configuration-register]]
|
2022-10-03 12:11:31 +00:00
|
|
|
== GUI for configuring the Wine registry (winecfg)
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
https://wiki.winehq.org/Winecfg[`winecfg`] is a GUI configuration tool for Wine, designed to make life
|
2022-09-17 06:45:19 +00:00
|
|
|
a little easier than editing the registry.
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
This utility is provide by the https://packages.fedoraproject.org/pkgs/wine/wine-common/[`wine-common` package].
|
|
|
|
It allows you to:
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
- set the Windows version
|
|
|
|
- change the default libraries (DLLs) Wine loads
|
|
|
|
- modify graphics settings
|
|
|
|
- modify desktop integration related settings
|
|
|
|
- modify drive mappings
|
|
|
|
- change sound/audio settings
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
WARNING: Some applications do not work with the default
|
|
|
|
Windows version which Wine offers. E.g.: Amazon Kindle
|
|
|
|
Desktop Edition.
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
[[wine-script]]
|
2022-10-03 12:11:31 +00:00
|
|
|
== Gui Wine script (winetricks)
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
https://wiki.winehq.org/Winetricks[Winetricks] is a helper script to download and install various
|
2022-09-17 06:45:19 +00:00
|
|
|
redistributable runtime libraries needed to run some programs in Wine.
|
|
|
|
These may include replacements for components of Wine using closed
|
|
|
|
source libraries.
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
It is provided by the https://packages.fedoraproject.org/pkgs/winetricks/winetricks/[`winetricks` package]:
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
sudo dnf install winetricks
|
|
|
|
```
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
It can download and install applications and libraries
|
|
|
|
needed to run some programs in Wine, e.g., Adobe Digital Edition.
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
[[working-with-prefix]]
|
2022-10-03 08:53:00 +00:00
|
|
|
== Wine prefix
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
A https://wiki.winehq.org/FAQ#Wineprefixes[Wine prefix] is a folder that contains all of the Wine configurations
|
|
|
|
as well as all of the Windows pieces that Wine uses for compatibility,
|
2022-09-17 06:45:19 +00:00
|
|
|
including libraries and a registry.
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
Some applications need a 32 or 64 wine prefix, this can be done in the
|
2022-09-17 06:45:19 +00:00
|
|
|
following way:
|
|
|
|
|
|
|
|
- Create a clean wine32/64 prefix:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2022-10-03 12:11:31 +00:00
|
|
|
WINEPREFIX="$HOME/<directory>" WINEARCH=winxx wine wineboot
|
2022-09-17 06:45:19 +00:00
|
|
|
```
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
* Where `xx` is 32 or 64 bits
|
|
|
|
* `<directory>` is the directory which you can store the wine environment
|
|
|
|
|
|
|
|
To use a wine prefix created before:
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
```
|
2022-10-03 12:11:31 +00:00
|
|
|
export WINEPREFIX=$HOME/<directory>
|
2022-09-17 06:45:19 +00:00
|
|
|
```
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
[[install-basic-applications]]
|
|
|
|
== Install some basics/utils applications
|
2022-09-17 06:45:19 +00:00
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
How to install the follow applications under wine?
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
1. Adobe Digital Edition 4.5
|
|
|
|
|
2022-10-03 12:11:31 +00:00
|
|
|
* use `winetricks` as descibed before and select **install application** in
|
|
|
|
the menu "What you do you want to do?"
|
|
|
|
* in "Which package(s) would you like to install?" select `adobe_diged4`
|
2022-09-17 06:45:19 +00:00
|
|
|
|
|
|
|
2. Kindle Desktop Edition
|
|
|
|
|
2022-10-03 08:53:00 +00:00
|
|
|
* download from -> https://www.amazon.com/Amazon-Digital-Services-LLC-Download/dp/B00UB76290[Amazon Kindle]
|
2022-09-17 06:45:19 +00:00
|
|
|
* install it
|
|
|
|
* use winecfg to change the default windows version so is 7 to a higher
|
|
|
|
version
|
|
|
|
|
2017-10-26 21:20:01 +00:00
|
|
|
[[bugs-and-problems]]
|
2018-07-29 11:01:46 +00:00
|
|
|
== Bugs and problems
|
2017-10-26 21:20:01 +00:00
|
|
|
|
|
|
|
Before reporting bugs against Wine please make sure your system is fully
|
|
|
|
up to date.
|
|
|
|
|
|
|
|
....
|
2022-06-25 06:52:29 +00:00
|
|
|
dnf upgrade
|
2017-10-26 21:20:01 +00:00
|
|
|
....
|
|
|
|
|
2022-09-16 11:41:23 +00:00
|
|
|
Also check if a newer version is available in the https://fedoraproject.org/wiki/QA:Updates_Testing[updates-testing] repository.
|
2017-10-26 21:20:01 +00:00
|
|
|
|
|
|
|
....
|
|
|
|
dnf --enablerepo=updates-testing update wine
|
|
|
|
....
|
|
|
|
|
|
|
|
If you are using the proprietary graphics drivers please remove them
|
|
|
|
from your system and try again, as they are known to cause problems.
|
|
|
|
|
|
|
|
When debugging Wine, your goal is to determine if the issue is one of
|
|
|
|
_code functionality_ or _packaging in Fedora_.
|
|
|
|
|
|
|
|
Check the http://appdb.winehq.org[Wine Application Database] to see if
|
|
|
|
your application is supported, or if there are known issues that match
|
|
|
|
yours. Anything that falls into this category is a bug in upstream code
|
|
|
|
functionality.
|
|
|
|
|
|
|
|
The next step is to see if the problem persists with a clean ~/.wine
|
|
|
|
folder. To try this without losing your old configuration:
|
|
|
|
|
|
|
|
....
|
|
|
|
mv ~/.wine ~/.wine-save
|
|
|
|
....
|
|
|
|
|
|
|
|
Afterwards try to trigger the bug again. Your original wine folder can
|
|
|
|
be restored with:
|
|
|
|
|
|
|
|
....
|
|
|
|
rm -fr ~/.wine; mv ~/.wine-save ~/.wine
|
|
|
|
....
|
|
|
|
|
|
|
|
If your application still does not work but has been working in a
|
|
|
|
previous version of wine it is probably a regression. Consider filling a
|
|
|
|
bug in the upstream https://bugs.wine-staging.com/[Wine-staging bug
|
2018-04-06 13:42:54 +00:00
|
|
|
tracking system].
|
|
|
|
|
|
|
|
IMPORTANT: Do not file bugs in the Winehq.org bugzilla unless told to do so.
|
|
|
|
|
2017-10-26 21:20:01 +00:00
|
|
|
If you really think that your bug is Fedora-related, file a bug against
|
|
|
|
the Wine component in https://bugzilla.redhat.com[Fedora's bug tracking
|
|
|
|
system].
|