Launch bottles application from command line

I have installed bottles for Windows application emulation.

I am trying to start an application via command line but have not been able to start the application automatically. It opens up the bottle but the application does not start and it requires a manual start.

I would like to get this to work so I can create a systemd service which launches this app on system boot. OS is AlmaLinux 8.

Here’s the variation of commands I have tried.

flatpak run com.usebottles.bottles -b NetSync -e 'C:windowssystem32start.exe /wait C:Program Files (x86)BigNetNetSyncNetSync.exe'
flatpak run com.usebottles.bottles -b NetSync -e 'C:Program Files (x86)BigNetNetSyncNetSync.exe'
flatpak run com.usebottles.bottles -b NetSync -e '/home/rlee/.var/app/com.usebottles.bottles/data/bottles/bottles/NetSync/drive_c/Program Files (x86)/BigNet/NetSync/NetSync.exe'
flatpak run com.usebottles.bottles -b NetSync -e /home/rlee/.var/app/com.usebottles.bottles/data/bottles/bottles/NetSync/drive_c/Program Files (x86)/BigNet/NetSync/NetSync.exe
Asked By: supmethods

||

A cursory glance at the bottles documentation (usebottles.com homepage top, "docs", CLI) suggests you should be running bottles-cli, instead of the graphical frontend.

So,

flatpak run --command=bottles-cli com.usebottles.bottles --help

points out you can run subcommands (instead of --help); especially, the run subcommand:

usage: bottles-cli run [-h] -b BOTTLE [-e EXECUTABLE] [-a ARGS] [-p PROGRAM]

optional arguments:
  -h, --help            show this help message and exit
  -b BOTTLE, --bottle BOTTLE
                        Bottle name
  -e EXECUTABLE, --executable EXECUTABLE
                        Path to the executable
  -a ARGS, --args ARGS  Arguments to pass to the executable
  -p PROGRAM, --program PROGRAM
                        Program to run
Answered By: Marcus Müller
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.