Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

bottles-cli launches program with X11 while the GUI launches program with Wayland, is this intended?

Open BenvdStouwe opened this issue 1 year ago • 3 comments

Hi, I'm here again. Since I couldn't get Adobe Digital Editions (ADE) to show up in the Programs tab (#1792), I decided to experiment with the bottles-cli to be able to start it with a command.

There are a few things I have noticed that I have questions about. First, even though the Bottles GUI doesn't show ADE as a program, bottles-cli does show it as a program listed in the bottle! Second, I noticed that while launching ADE with the bottles-cli, the program would have graphical issues that I have seen on other distributions with this program. This was weird, because launching the program using the Bottles GUI doesn't show this behavior.

bottles-cli: image

Bottles GUI: image

The only difference I could come up with is X11 vs Wayland. So I started the xeyes program and that way I identified that launching ADE using bottles-cli it would launch using X11 while launching with the Bottles GUI it would launch using Wayland.

My question is, is this behavior intended? Can I get bottles-cli to launch the program using Wayland, since it doesn't have these graphical issues? I could not find information about this in the docs.

BenvdStouwe avatar Jul 17 '22 20:07 BenvdStouwe

@mirkobrombin do you know this or do you know who can answer this?

BenvdStouwe avatar Jul 25 '22 07:07 BenvdStouwe

It is not desirable but it is completely and 100% unavoidable. Wine does not support wayland, and it will take some (long) time for it to do it, therefore any wine app launched from within bottles will need access to the x11 server.

A6GibKm avatar Jul 30 '22 17:07 A6GibKm

If that's true, how come that launching the program with the GUI does seem to be using Wayland? Could there be another reason why the program behaves differently graphically when launching it with the cli?

BenvdStouwe avatar Jul 31 '22 06:07 BenvdStouwe