No Linux Support - And here is why
Why Porting MateEngine to Linux Does Not Make Sense
Porting MateEngine to Linux would require a massive amount of work for very limited benefit. Linux does not fully support C# (.NET) in a stable, standardized way across distributions. In addition, Linux audio systems vary between distributions (PulseAudio, PipeWire, ALSA, etc.), making audio compatibility extremely difficult to maintain.
MateEngine also relies heavily on libraries like UniWindowController and NAudio, both of which do not support Linux at all. This means we would not just have to translate the MateEngine code itself we would also need to rewrite or replace two entire libraries from scratch. This alone would take hundreds of development hours.
Even after all that work, the port would likely only function on a handful of Linux distributions. Each Linux distro uses a different desktop environment (e.g., GNOME, KDE, Xfce), making key features like window snapping, taskbar sitting, and window tracking almost impossible to support consistently.
In short: the time, cost, and technical challenges of porting MateEngine to Linux far outweigh any potential gain.
If you believe what I'm saying is "wrong," then feel free to create a Linux port yourself. I won’t be doing it — I’m not going to maintain an app across various Linux distributions or handle the associated bug fixes. It’s simply not worth the hassle.
Edit//
Furthermore, it is almost impossible to support Linux across all environments such as Wayland, Hyprland, X11, KDE Plasma, and others. Each of these desktop environments uses different code bases, which means features like taskbar sitting, window sitting, hiding on screen, big-screen mode, and more would need individual support for every commonly used environment. This makes proper maintenance unfeasible, especially for a single developer.
Is there going to be macOS support?
Is there going to be macOS support?
Maybe. Porting it to MacOS is more realistic compared to Linux.
Maybe. Porting it to MacOS is more realistic compared to Linux.
MacOS support would be awesome! +1
Totally get not wanting to support raw Linux due to the number of configurations available. There could be a potential workaround though by targeting Wine/Proton instead of Linux itself.
I just tried running 1.8.2 in a just-installed-from-package-manager Wine container via command line and some things function, some don't. Running on Fedora 42, wine version 10.4 (staging).
Things working:
- Model visuals, including all graphics settings and ambient occlusion
- mouse tracking and any model interactions like hand holding or headpat mode
- model switching and importing
- FPS limit
- Model dragging, along with the dragging animations, but stays fixed (see below)
- Headpat mode full screens the window across the entire display properly
- Animation switching
- Chibi mode
- Always On Top toggle (helps with the "sort of buggy" section below)
What is sort of buggy:
- Probably due to the way that Wine works, there is a large black background behind the loaded model that follows position to where a model is dragged. Image attached here:
Probably some artifact of it being a borderless windowed app; this could be either fixed by doing some transparency hack to replace the black background, or making it a feature and making it windowed-mode only. It's already being done during boot of the app, so maybe make it a config option?
- The size of the black box AND the model are both adjustable by clicking this icon:
I'm assuming this is intended to change the size of the settings menu or GUI in general,
What isn't working at all:
- ~~Any concept of gravity. If I move the model to a specific location, it stays there. If models are capable of moving around, this is also broken for probably the same reason. This is unlikely to be fixable unless Wine somehow gets return feedback on active display size, and I don't expect it to be.~~ Edit: After playing with Windows version, this isn't actually a bug! Didn't realize it floats intentionally even with taskbar/window detection. Sorry for bringing up a nonexistent issue!
- Anything related to audio, either speaking, menu sounds, or listening to background music to activate dance animations. Makes sense, could be DLL related. As mentioned earlier, I'm running a brand new Wine install, so I could absolutely be missing a required library that Windows always comes with. If anyone has any ideas what libraries these could be, I'll do some experiments myself and get back to everyone!
- I doubt Discord Rich Presence will work without some sort of patch. I know other games using Proton can trigger it, so there may be something that can be done.
- ~~The chat function (right click, chat icon) always says "Loading...", as seen below. Unsure what would be causing this. I'll try running in a Windows VM at some point to see how it works, because to be blunt, this is the first time I'm running MateEngine to begin with 😛.~~ Edit: Chat works in Wine without issue after downloading Qwen. It's a tad slow on a laptop, but that's to be expected.
Thanks for reading if anyone did! I'll play around further when I can.
Wine is not a Solution as you will have a Black Box and you will never be able to get rid of it.
You will not be able to port this to linux :)
Totally get not wanting to support raw Linux due to the number of configurations available. There could be a potential workaround though by targeting Wine/Proton instead of Linux itself.
I just tried running 1.8.2 in a just-installed-from-package-manager Wine container via command line and some things function, some don't. Running on Fedora 42, wine version 10.4 (staging).
Things working:
* Model visuals, including all graphics settings and ambient occlusion * mouse tracking and any model interactions like hand holding or headpat mode * model switching and importing * FPS limit * Model dragging, along with the dragging animations, but stays fixed (see below) * Headpat mode full screens the window across the entire display properly * Animation switching * Chibi mode * Always On Top toggle (helps with the "sort of buggy" section below)What is sort of buggy:
* Probably due to the way that Wine works, there is a large black background behind the loaded model that follows position to where a model is dragged. Image attached here: Probably some artifact of it being a borderless windowed app; this could be either fixed by doing some transparency hack to replace the black background, or making it a feature and making it windowed-mode only. It's already being done during boot of the app, so maybe make it a config option?
* The size of the black box AND the model are both adjustable by clicking this icon:
I'm assuming this is intended to change the size of the settings menu or GUI in general,
What isn't working at all:
* ~Any concept of gravity. If I move the model to a specific location, it stays there. If models are capable of moving around, this is also broken for probably the same reason. This is unlikely to be fixable unless Wine somehow gets return feedback on active display size, and I don't expect it to be.~ Edit: After playing with Windows version, this isn't actually a bug! Didn't realize it floats intentionally even with taskbar/window detection. Sorry for bringing up a nonexistent issue! * Anything related to audio, either speaking, menu sounds, or listening to background music to activate dance animations. Makes sense, could be DLL related. As mentioned earlier, I'm running a brand new Wine install, so I could absolutely be missing a required library that Windows always comes with. If anyone has any ideas what libraries these could be, I'll do some experiments myself and get back to everyone! * I doubt Discord Rich Presence will work without some sort of patch. I know other games using Proton can trigger it, so there may be something that can be done. * ~The chat function (right click, chat icon) always says "Loading...", as seen below. Unsure what would be causing this. I'll try running in a Windows VM at some point to see how it works, because to be blunt, this is the first time I'm running MateEngine to begin with 😛.~ Edit: Chat works in Wine without issue after downloading Qwen. It's a tad slow on a laptop, but that's to be expected.Thanks for reading if anyone did! I'll play around further when I can.
I've seen Wine be able to run windows which are transparent, I wonder why it's having issues with this here. Could it maybe be an issue with Wayland?
I've seen Wine be able to run windows which are transparent, I wonder why it's having issues with this here. Could it maybe be an issue with Wayland?
I am not sure as i don't use linux
I've seen Wine be able to run windows which are transparent, I wonder why it's having issues with this here. Could it maybe be an issue with Wayland?
I am not sure as i don't use linux
Yeah that makes sense. I was hoping they or someone else would know why.
I am indeed using Wayland, but I don't have an X-only session available. Perhaps something to throw towards the Wine devs.
From: Draconic NEO @.> Sent: Thursday, July 31, 2025 1:22:29 PM To: shinyflvre/Mate-Engine @.> Cc: Alaric323 @.>; Comment @.> Subject: Re: [shinyflvre/Mate-Engine] No Linux Support - And here is why (Issue #101)
[https://avatars.githubusercontent.com/u/44508470?s=20&v=4]DraconicNEO left a comment (shinyflvre/Mate-Engine#101)https://github.com/shinyflvre/Mate-Engine/issues/101#issuecomment-3140771678
I've seen Wine be able to run windows which are transparent, I wonder why it's having issues with this here. Could it maybe be an issue with Wayland?
I am not sure as i don't use linux
Yeah that makes sense. I was hoping they or someone else would know why.
— Reply to this email directly, view it on GitHubhttps://github.com/shinyflvre/Mate-Engine/issues/101#issuecomment-3140771678, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA6Z7QDEDHDBFYB3WLRA6I33LJGFLAVCNFSM6AAAAAB4HGQMD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNBQG43TCNRXHA. You are receiving this because you commented.Message ID: @.***>
@Alaric323 the window is black because of Wayland. Wayland for "security purposes" doesn't allow user-level windows to be transparent. Try it on X11, you will see that the window will be transparent
@DraconicNEO ^
This has nothing to do with Wine
@Alaric323 the window is black because of Wayland. Wayland for "security purposes" doesn't allow user-level windows to be transparent. Try it on X11, you will see that the window will be transparent
That seems extremely stupid, like most things Wayland unfortunately. I had a feeling it was likely caused by something like that but wasn't entirely sure.
@DraconicNEO "wayland is the future" they say, yeah surely, while problems like these still arise and they don't change their mind, wayland is overwhelmingly strict compared to x11, truly the "future"
i cant even start a remote headless session on my server because of wayland
It's the future guys!!!!!!! i hate their team and borderline stupid design choices
@Alaric323 the window is black because of Wayland. Wayland for "security purposes" doesn't allow user-level windows to be transparent. Try it on X11, you will see that the window will be transparent
It's a wine issue. I just tried it on SteamOS desktop (x11) and it has the black box. Furthermore, one of the functions UniWindowController can use to make transparent windows appears to be stubbed in wine. Admittedly that could be a red herring since I couldn't find where the window is set to be transparent in mate engine itself, but considering it appears native linux unity can do transparency under xwayland, I suspect far more that it's a wine issue than any kind of wayland issue.
I guess it's not impossible to port it, but it's sure that WIndows-dedicated packages need to be replaced so this project will finally work on a very specific Linux (In my case I use Pipewire for audio and X11 for window management, but for other Linux users they could be different)
So i enabled virtual desktop on proton tricks or wine tricks and used winecfg. The Ai works without any issue. Now i can drag the model inside this window and resize the window and even pin the window ontop of other windows. But still that doesn't solve black box issue .
@SkullReaper770 So that's why we have a Linux port
I have spent nearly two weeks to figure out Linux alternates to NAudio's audio program detection logic and UniWindowController's window transparency, and the result for former is to write a script that uses P/Invoke to interface with PulseAudio's library, for latter we only need to add an environment variable when launching Unity Player: SDL_VIDEO_X11_VISUALID, check the original Unity Discussions thread here.
@SkullReaper770 So that's why we have a Linux port
I have spent almost half of a month to figure out the Linux alternatives of NAudio's audio program detection logic and UniWindowController's window transparency, and the result for former is to wildly write a script that uses P/Invoke to interface with PulseAudio's library, for latter we only need to add a environment variable when launching Unity Player:
SDL_VIDEO_X11_VISUALID, check the original Unity Discussions thread here.
Yooo Lets goo. Appreciate your efforts man. Edited (Works on wayland and x11 and some desktop env like kde gnome and xfce4)
Note:
For Kde users disable "Allow applications to block compositing" in KDE settings
Then logout or restart x11 session
This will make black box transparent in kde x11
after disabling "Allow applications to block compositing" i switched between xfce4 and came back to kde and it works fine
@SkullReaper770 So that's why we have a Linux port
I have spent nearly two weeks to figure out Linux alternates to NAudio's audio program detection logic and UniWindowController's window transparency, and the result for former is to write a script that uses P/Invoke to interface with PulseAudio's library, for latter we only need to add an environment variable when launching Unity Player:
SDL_VIDEO_X11_VISUALID, check the original Unity Discussions thread here.
They should let you maintain the OFFICIAL version on this repo. So the main version would be maintained by official creator, and you would maintain the Linux version :)
Closed as i will not support linux