Bottles
  • Welcome
  • 📌Getting started
    • Installation
    • First run
    • Environments
  • Components
    • Runners
    • DXVK
  • Bottles
    • App preferences
    • Run .exe/.msi/.bat/.lnk files
    • Shortcuts
    • Bottle preferences
    • Dependencies
    • Programs
    • Installers
    • Versioning
    • Backups & Duplicate
    • Import from other managers
    • Configuration files
  • Utilities
    • Logs & Debugger
    • CMD
    • Winecfg
    • Task manager
    • Regedit
    • Uninstaller
  • Advanced
    • CLI
    • Use Bottles as wine command
    • xdg-open links
  • 🎩Contribute
    • Missing dependencies
  • Flatpak
    • Can't enable Steam Proton manager
    • Migrate directories to Flatpak
    • Black screen or silent crash
    • Expose directories
      • Use system home
  • FAQ
    • Why Bottles?
    • Where is Winetricks?
    • Updates and old versions
    • Video GStreamer Problems
Powered by GitBook
On this page
  • Custom wine command
  • Usage

Was this helpful?

Edit on GitHub
Export as PDF
  1. Advanced

Use Bottles as wine command

Bottles can also works as the default wine command in your system.

In some specific cases it may be useful to have Bottles as a system WINE command, for example when a program needs to access the command and we want it to use a specific bottle.

Custom wine command

Make sure you don't have wine installed on your system before proceeding.

Make a new file named wine in ~/.local/bin or any directory in your PATH with the following content:

#!/bin/sh
flatpak run --command='bottles-cli' com.usebottles.bottles run -b MyBottle -e "$@"

or the following if you are not using the Flatpak:

#!/bin/sh
bottles-cli  run -b MyBottle -e "$@"

and change MyBottle to the name of your chosen bottle. Then make it executable:

chmod +x ~/.local/bin/wine

Usage

Now just run:

wine program_name.exe # or installer_name.msi

to launch it with Bottles. It will automatically use your chosen bottle.

PreviousCLINextxdg-open links

Last updated 3 years ago

Was this helpful?