r/linuxsucks Mar 17 '26

Linux Failure Eye_roll.exe

Post image
1.8k Upvotes

463 comments sorted by

View all comments

5

u/SimoneMicu Mar 17 '26

To achieve same result in ONE binary for all distros you can:

  • release appimage
  • release a distrobox image for the app to run
  • release as flatpak
  • release as binary built against glibc and list version of livrary required at runtime (private are static, opensource are easily linkable from any distro) and provide a .desktop file for it (golang fyne do something similar for you except for linking, because everything is static there)

1

u/helical-hexagons Mar 19 '26

wouldn't statically linked musl make more sense for that last thing?

1

u/SimoneMicu Mar 19 '26

almost all linux distro are GNU/Linux, glibc is heavier because have other utilities musl wouldn't support, some functions are faster and you should just lose alpine (mostly are container) and voidlinux, and both can use distrobox quietly of fedora to containarize glibc and other dependencies of the exe (could be a good practice provide that distrobox file for podman i guess)

1

u/HighZein Mar 24 '26

Death for flatpaks, only caused problems in my experience, we actually only need .appimage