r/flatpak • u/birnes • Nov 01 '26
Wine in a Flatpak: a missing machine-id made Adobe licensing see a new device
I package AdobeWine, a patched Wine that runs Adobe's Creative Cloud apps on Linux, as a single Flatpak bundle. Claude wrote most of the code, and helped with this post. A sandbox bug from the latest release may be useful to anyone packaging Wine.
Wine builds the Windows machine UUID from /var/lib/dbus/machine-id. That file doesn't exist in the sandbox, so Wine fell back to a placeholder UUID and board serial, and Adobe's licensing treated each Flatpak install as a new device. /etc/machine-id is available and holds the same value on a normal system, so Wine now falls back to it (patch 0107). Windows programs then see the same UUID in and out of the sandbox.
Two other things the sandbox changes for Wine: the disk serial shows up as a generic WINEDISK, and all instances of an app share one /tmp, so they also share one wineserver.
I'd like to hear from anyone else packaging Wine as a Flatpak. Is there a better way to give apps a stable machine identity?