-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper wayland support #381
Comments
I believe what this issue is asking is for us to add the following flags when electron is starting pulsar Which I was able to find here, since the official Electron Docs don't seem to make any mention of this. Additionally I wouldn't say this future proofs the software. Really just provides better support for users on Linux Wayland. Which I wonder if there's a way for us to autodetect that when starting up on Linux, or if using these flags when not on a Wayland system would cause any issues. |
The easiest, most basic implementation would just expose an option to start up with these flags, perhaps this could be exposed as a setting for linux users? I think unless someone knows how to do this detection automatically and its not much effort, its probably quickest to get at least manual support in somehow |
Looked up some Stack Overflow. One of the answers says it's better to check for Wayland first then X. |
Ideally, this can be added to |
Hello, I forgot to mention in the original issue that the wayland flags currently are not working for pulsar. That is why I made this issue. |
I'm assuming this is because when pulsar starts up, I believe in the |
yeah thats what I assumed too >< |
I can confirm this doesn't work, at least with the flatpak. Neither the flags Also, because the Pulsar flatpak seems to be using Electron 12, it won't have the latest improvements on Wayland, most notably the XDG FileChooser Portal added in Electron 14 or the automatic detection from Electron 20. The automatic detection thing answers the above doubt:
Although it would already be plenty useful if users could manually set it themselves. |
We do not currently support the flatpak, that distribution is not provided by us. We do want to support it eventually but things like the above issues relating to electron versions and proper support of the XDG base spec need to be considered so we can actually make a reliable flatpak distribution that we can support without having to account for weird edge cases. |
Any news on this? |
@jakedevs nothing yet, but we wouldn't be opposed to a PR if you have a chance. But otherwise hopefully someone can get to it |
@jakedevs I feel that this will only be addressed when we upgrade Electron to a newer version - which is not an easy thing to do, honestly. That being said - we do have a working version for Pulsar on Electron 24, that may work for you: https://cirrus-ci.com/github/pulsar-edit/pulsar/feature%2Flatest-electron. I am actually using it for my day-to-day work, but most packages that depend on native modules don't work. But if you want, feel free to try. The changes on that build are present in #484. Please notice that the builds are not passing but the binary is generated, so you can try it if you want :) |
Hi Pulsar devs. First of all, thank you very much for your efforts in this project. I understand that these "are we there yet?" or "me too" kind of posts are not helpful, and you'd rather get a PR with a fix, but since I'm not in a position to provide that, I'd like to at least mention a few things that may add perspective to this issue. In these five years since this issue was originally opened, Wayland has evolved a lot, and is now the default on several distros. It offers better performance and security compared to X11, and most Electron-based applications support it by now, either natively or via user-defined flags. I believe proper Wayland support would be an important improvement for Pulsar when you can find the time and resources to implement it. |
Hi, @4ntsu - yes, we're aware of these. For now, we do have a version that runs on Wayland. It still have a lot of issues that need to be solved, but it is completely usable: #484 If you want to live on the bleeding edge (like I do - seriously, I use this "newest Electron" version, and have been using it for about 3 months now) you can grab a binary directly from the CI: https://cirrus-ci.com/github/pulsar-edit/pulsar/feature%2Flatest-electron (don't mind the "Failed" badge, that's basically because Windows is not passing, as always, but fortunately Linux and Mac (both archs) are) The power of community packages is what makes Pulsar so powerful, and unfortunately, some widely used packages like Hydrogen and basically all terminals are broken now (there's a workaround for x-terminal-reloaded by the way), but even then, we're discussing a way to make this version available from our downloads session, maybe under an "unstable" flag. |
Thank you @mauricioszabo.
|
In order to get that unstable branch to be on the version of electron it's on, we did have to unfortunately not include the github integration as it is one of the reasons we can't make the jump outright |
I just want to add to this discussion that the problem with auto-detection can now be fixed with recent Electron releases by using |
Have you checked for existing feature requests?
Summary
Support wayland using the electron wayland flags.
What benefits does this feature provide?
Future proofs the software
Any alternatives?
No
Other examples:
No response
The text was updated successfully, but these errors were encountered: