Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

[idea] creating snap of wine runtime #1

Open
Maryse47 opened this issue Nov 23, 2018 · 4 comments
Open

[idea] creating snap of wine runtime #1

Maryse47 opened this issue Nov 23, 2018 · 4 comments
Labels
question Further information is requested

Comments

@Maryse47
Copy link

Did you considered creating standalone wine runtime as snap? This way it won't need to create separate snap for every app you want to run (we're talking about thousands of windows apps which can be run with wine) but install them through this runtime instead. It would work similar to wine installed as generic package in system but with advantages if being snap.

@mmtrt mmtrt added the question Further information is requested label Nov 23, 2018
@mmtrt
Copy link
Owner

mmtrt commented Nov 23, 2018

Yes it can be done but there is the snap confinement issue where some applications and games can cause wineserver ptrace which is very problematic likely will crash or hang. For example if wine-runtime is strict confinement and leagueoflegends game does cause wineserver ptrace so users can not play that game at all unless wine-runtime is on devmode which is that developers should not encourage end-users to install snaps with the ‘–devmode’ switch. Devmode snaps cannot be published in the stable channel of the snap store. End users should not normally install snaps in devmode as this undoes any protections set out with confinement and interfaces. Snaps which use devmode confinement cannot be published in the snap store stable.
However there is classic confinement which the snap having it needs to be reviewed and accepted by snappy advocacy team.

You can read more about snap confinement.

@Maryse47
Copy link
Author

Maryse47 commented Nov 23, 2018

I'm absolutely not advocating for disabling snap confinement. I run wine confined with custom apparmor profile which denies ptrace (ptrace is also restricted by yama) and didn't saw anything unusual. If there are some corner cases like leagueoflegends which abuses ptrace then they may require its own snap but majority apps should work just fine.

@brlin-tw
Copy link

I wonder if we can actually publish one with classic confinement...

Reference: Is it possible to build Wine with Snappy? - snapcraft - snapcraft.io

@mmtrt
Copy link
Owner

mmtrt commented Jul 3, 2019

Here is my example proposal post on how this will shape but I'm not doing it.

Link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants