News for hackers. Stuff that matters.
Re:Bottles: GUI front end to run Windows software on Linux by moharoune on Sunday December 19, 2021 @06:22AM (#29613082)
How does this compare to Wine ?
Re:Bottles: GUI front end to run Windows software on Linux by boudin on Sunday December 19, 2021 @07:17AM (#29613338)
I don't know why you're getting down-voted, it's a legitimate question since the main page doesn't mention wine once. It is a Wine frontend though, seems to also integrate wine-tricks for dependencies, DXVK and other things from the wine eco-system.
Re:Bottles: GUI front end to run Windows software on Linux by rhdunn on Sunday December 19, 2021 @07:09AM (#29613303)
Bottles are isolated Wine environments, similar to containers or VMs. This allows you to install components (e.g. msxml3) to, and modify the configuration of that environment to make the program work without having it affect other applications.
Re:Bottles: GUI front end to run Windows software on Linux by mathfailure on Sunday December 19, 2021 @08:40AM (#29613834)
Isolated wine environments are called wineprefixes in wine terms and do not require any additional software.
Re:Bottles: GUI front end to run Windows software on Linux by hoppyhoppy2 on Sunday December 19, 2021 @01:16PM (#29616565)
I think bottles allow you to run a different version of wine inside each bottle (in addition to offering a noob-friendly GUI interface).
Re:Bottles: GUI front end to run Windows software on Linux by snvzz on Sunday December 19, 2021 @06:10PM (#29619525)
Sure, wine supports prefixes, but:

- No filesystem sandbox.

- No handling of dependencies.

- No first-party UI for managing multiple prefixes.

Re:Bottles: GUI front end to run Windows software on Linux by pxc on Sunday December 19, 2021 @06:39PM (#29619797)
> - No filesystem sandbox.

Every WINEPREFIX defines its own Windows disk drives, so the filesystem is effectively sandboxed. Conventionally, there's (often? always?) a Z:\ drive which points to / on the Linux filesystem, but there doesn't have to be. You can add or remove drive mappings without any additional tools beyond WINE itself, and applications running under WINE can't see files that don't have drives mapped to them, afaik.

Your other two points are correct, though.

Re:Bottles: GUI front end to run Windows software on Linux by snvzz on Sunday December 19, 2021 @06:57PM (#29619943)
>Every WINEPREFIX defines its own Windows disk drives, so the filesystem is effectively sandboxed.

No, it is definitely not effectively sandboxed. You only need to access / instead of Z:. Wine has no sandbox mechanisms built in. It is also a fairly large codebase which definitely has a bug or two that could be exploited to get around such mechanisms if they existed.

To effectively sandbox, you need the kernel's help. Linux offers namespaces and control groups.

The way you use these comfortably behind a layer of abstraction is through containers. Bottles uses flatpak for the purpose.

Re:Bottles: GUI front end to run Windows software on Linux by pxc on Sunday December 19, 2021 @07:12PM (#29620075)
> No, it is definitely not effectively sandboxed. You only need to access / instead of Z:. Wine has no sandbox mechanisms built in. It is also a fairly large codebase which definitely has a bug or two that could be exploited to get around such mechanisms if they existed.

If you don't have Z:\ enabled, how do you actually access those Unix-like paths? When I launch a WINE command prompt in a prefix with no Z:\ enabled, I get:

  wine: could not open working directory L"unix\\home\\pxc\\", starting in the Windows directory.
  Microsoft Windows 6.1.7601

  unix\home\pxc>dir
  Syntax error

  unix\home\pxc>cd ..

  unix\home>dir
  Syntax error
and so on. What Windows APIs are Windows programs supposed to use that will let them see parts of the Linux filesystem that are not mapped as Windows drives in WINE?

> To effectively sandbox, you need the kernel's help. Linux offers namespaces and control groups.

> The way you use these comfortably behind a layer of abstraction is through containers. Bottles uses flatpak for the purpose.

This is an improvement for sure, but I've never, ever had some WINE program run amok on my hard disk outside of the drives letters defined for it in the WINE configuration.

Thanks for pointing out the more thoroughgoing sandboxing that Bottles uses beyond just the WINE drive mapping, though.

Re:Bottles: GUI front end to run Windows software on Linux by anthk on Sunday December 19, 2021 @10:51AM (#29614822)

     export WINEPREFIX=$HOME/tmp

     mkdir $HOME/tmp

     wine foo/bar/bla/install.exe
Re:Bottles: GUI front end to run Windows software on Linux by pxc on Sunday December 19, 2021 @06:41PM (#29619823)
> mkdir $HOME/tmp

WINE will automatically create the WINEPREFIX directory for you if it doesn't exist, so it's even simpler than that :)

The real value of bottles (or crossties, or PlayOnLinux definitions, or whatever) in in encoding all the tips and tricks required to get some piece of software running under WINE in a form that lends itself to easy distribution and automation.

Re:Bottles: GUI front end to run Windows software on Linux by dschuessler on Sunday December 19, 2021 @06:23AM (#29613089)
Judging from the Github project page, it uses Wine itself, so is probably just a GUI frontend to it.
Re:Bottles: GUI front end to run Windows software on Linux by Vinnl on Sunday December 19, 2021 @06:24AM (#29613100)
I think this uses Wine (it mentions DXVK, which IIRC is for Wine), but handles setting it up correctly for every program you want to use.
Re:Bottles: GUI front end to run Windows software on Linux by mozarik on Sunday December 19, 2021 @06:44AM (#29613196)