Manage Wine Prefixes
Project description
Manage Wine Prefixes
The goal of this tool is to manage Wine prefixes from the command line.
It is a very thin wrapper around Wine commands to make it simple to manage multiple prefixes and usual commands (winetricks, dxvk).
Installation
You can install it using PyPI:
pip install wine-ctl
Or you can run it in-place since it has very few dependencies (you only need the ansible-roles-ctl script, version.py is only used in the build process).
You need the following dependencies:
- Wine (any version)
- Python >= 3.6 with the following libraries:
- pyyaml
- jsonschema
On Debian systems you can install them using:
apt install wine64-development wine32-development python3-yaml python3-jsonschema
These are also recommended:
apt install winetricks dxvk-wine64-development dxvk-wine32-development
You can use the stable version of Wine on Debian too, but if wine-development is available then it will be preferred.
Configuration file
The ~/.config/wine-ctl.yml
configuration file is required but very
simple. In fact only install_path
is needed to know the path of your
Wine prefixes.
If you have a library, for e.g. on GoG, then you can specify the path
(app_lib_path
) where your downloaded files (with lgogdownloader) are
stored. Then if you create prefixes with the same game directory name it
will reflect on the listing and suggest installers to run at creation
time.
If you wish certain files to be present in your home directory in the
Wine prefix (your Windows home), then you can specify the path of files
to be copied (home_skel
) when the prefix is created.
You may also wish to define specific environment variables to be set when running Wine in a prefix. This can be handy to pass parameters for your driver (RADV_PERFTEST), libraries (SDL_VIDEODRIVER, recommend empty on Wayland at the moment), or tools (DXVK_*).
Usage
Syntax is as follow:
wine-ctl [global options] [subcommand] [subcommand options]
You can use -h/--help option to list all available options at command and subcommand level, as well as all available subcommands.
Follows documentation about the various subcommands.
List
wine-ctl list
This subcommand display the list of properly setup prefixes. The L
flag indicates it is part of your library.
create
wine-ctl create <prefix-name>
This subcommand creates a new prefix. You may also specify the -u
option if you wish to update an already created prefix.
If you wish to lookup for an installer in your library then use the -l
option. The prefix name needs to match the game directory in your
library.
config
wine-ctl config <prefix-name>
This subcommand is a shortcut for the winecfg command. It is equivalent
to wine-ctl run <prefix-name> winecfg
.
run
wine-ctl run <prefix-name>
This subcommand runs a command in the prefix. If not specified then a list of available executables will be presented.
The command can be either a UNIX path (practical to select an installer) or a command which should be available in the prefix already (like usual Wine commands: winecfg, winefile, control, wineconsole…). If you wish to specify command options the you need to quote the command, for e.g.:
wine-ctl run <prefix-name> "reg query 'HKEY_CURRENT_USER\Software\Wine\DllOverrides'"
If you need to debug a command with winecfg
then you can add the
--debug
option.
dxvk
wine-ctl dxvk <prefix-name>
This subcommand is a wrapper to install or uninstall DXVK in the prefix.
If run without action then it displays the current installation status.
trick
wine-ctl trick <prefix-name>
This subcommand is a wrapper to run winetricks in the prefix.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wine-ctl-1.0.1.tar.gz
.
File metadata
- Download URL: wine-ctl-1.0.1.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c142e8f20331885b09ee676673ea4a155d1ba75e301265427cbe0b5f37b85e4 |
|
MD5 | 6f1cd279be0b157a3af0fd18fcea2578 |
|
BLAKE2b-256 | 06c8f98ec96508802fd9d75dca76c26e604ae9be6f990f4c42f4b1d0b494b8d9 |
File details
Details for the file wine_ctl-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: wine_ctl-1.0.1-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9d2bc4af1d9e85475fb7b1262e53110dce9ad4d1651a0b17b36fde06a96ffb |
|
MD5 | a2897c06be8a4c90651d2d130ea6a4b2 |
|
BLAKE2b-256 | b0e716c8bbef35951038aab3b75d05a47c02e4c2bf7f6bdf0d10208b29eef59e |