Holy shit, it’s happening, guys. Paint.net is getting official wine support. You know the windows situation is getting bad when even the developer of an app exclusively aimed at Windows is now shifting support to wine…

They’re contributing to the wine project and everything 🥲 https://bugs.winehq.org/show_bug.cgi?id=60276

I came on here a few months ago ranting about direct 2D stub functions. Two days ago the dev stopped calling those exact direct 2D functions https://github.com/paintdotnet/Paint.NET-on-Wine/releases/tag/v5.200.9785.36400

What a time to be alive. Truly a great time to be a Paint.net enjoyer.

  • BananaTrifleViolin@piefed.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    19 hours ago

    It’s interesting that it’s seemingly easier to make the windows version of Paint.NET work on Wine, than bother compiling it for .NET on Linux? I wonder if the dev regrets starting with .NET in the first place?

    • Err(()).unwrap()@lemmy.worldM
      link
      fedilink
      arrow-up
      23
      ·
      edit-2
      18 hours ago

      compiling it for .NET on Linux

      It always sounds so simple for the layperson. Just looking through the list of DLLs in the portable ZIP, PDN uses Windows Forms (System.Windows.Forms namespace), which, as far as I understand, isn’t included in the cross-platform releases of .NET. They’d have to rebuild the entire UI with .NET MAUI or some other cross-platform toolkit. Then there are lots of other bundled libraries that may or may not work in a .NET-on-Linux environment.

      Releasing and then supporting a second platform is never as easy as just compiling the executable. Figuring out the quirks and differences of various systems, especially one as heterogenous as the Linux ecosystem, is a drain on resources that small development studios often can’t afford. Raiguard (hallowed be his name), one of the developers of Factorio, and the person who is single-handedly maintaining the Linux-native build, wrote a blog post about its challenges.

    • Thorry@feddit.org
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      19 hours ago

      It makes no sense, .NET is fully supported on Linux and has been for years. There is an official SDK and it’s capable of creating full standalone executables, or smaller ones requiring the runtime libraries to be installed on the target system. As far as I know good packages exist for just about any distro. .NET is fully open source and not just worked on by Microsoft, but a large community.

      Creating a Linux executable from any .NET code is as simple as running a single command, it supports cross platform compilation as well. With support for a range of architectures and OSes.

      The only caveat is all the code needs to be properly managed code, any unmanaged code is most likely not cross platform compatible and is thus not recommended. It can even break as drivers or the OS is updated for example, so it’s a bad idea to have unmanaged code and usually not needed.

      • Zarobi@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        Not fully supported. Some libraries are not supported especially drawing ones. .Net can be cross platform but you have to be careful what you use

      • groet@feddit.org
        link
        fedilink
        arrow-up
        9
        ·
        19 hours ago

        Only “.NET core” is cross Plattform. “.NET framework” is Windows only. If they startend developing in framework they cant simply compile to linux.

        • Thorry@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          10 hours ago

          .NET framework has been discontinued for years now with .NET platform being the official successor. It’s no longer called .NET core. If one started with framework, moving over to platform is very easy as it’s the exact same language. If thet were on framework still, it would mean they haven’t updated in years, which would be weird and not recommended.