whynothugo,
@whynothugo@fosstodon.org avatar

What Wayland is missing is a solid, reliable toolkit for making simple graphical applications.

Every time that I start designing a GUI the process converged on designing my own GUI because there’s simply nothing that has first class support for Wayland.

I’m also slowly accepting the fact that I might have to implement one someday.

stacyharper,

@whynothugo Write a toolkit layer above Hari?

whynothugo,
@whynothugo@fosstodon.org avatar

@stacyharper I’ve also considered using Hare for this. Hari looks like an interesting base.

My main reservation is memory safety and the fact that I’m not too experienced with manual memory management in large codebases.

But using Hare is still between my top two options.

ahoyboyhoy,

@whynothugo what language should the toolkit be in?

whynothugo,
@whynothugo@fosstodon.org avatar

@ahoyboyhoy That’s honestly the question that’s been in my mind lately. Rust seems the most likely candidate right now.

ahoyboyhoy,

@whynothugo the @system76 team working on and must be working on this. https://github.com/pop-os/cosmic-epoch

ahoyboyhoy,
ahoyboyhoy,

@whynothugo @system76 iced is the lower level GUI lib being used by their own toolkit libcosmic it appears https://github.com/pop-os/libcosmic

whynothugo,
@whynothugo@fosstodon.org avatar

@ahoyboyhoy @system76 Iced is lacking clipboard support (and a few other minor features). A few layers of abstractions/dependencies on which they rely don’t allow easily fixing this. These dependencies include support for several proprietary platform, so a replacement needs to support these proprietary platforms too.

whynothugo,
@whynothugo@fosstodon.org avatar

@ahoyboyhoy @system76 I actually reached about to them in 2022, but there seems to be no interest in this. https://github.com/iced-rs/iced/discussions/1455

Most “modern” toolkits ignore clipboard or provide minimal support, which is a huge shame.

ahoyboyhoy,

@whynothugo @system76 @soller @mmstick may know the answer, but I wouldn't be surprised if support has been added since. All of these libraries are under heavy development it appears.

whynothugo,
@whynothugo@fosstodon.org avatar

@ahoyboyhoy @system76 @soller @mmstick Nope, the API docs indicate that nothing has changed.

There’s a large amount of work involved, and at some point you reach a library that supports lots of proprietary environments, so you need to somehow deal with that too.

Personally, I’d replace these dependencies which have bogus abstractions with dependencies that (a) ignore the burden of non-free environment (b) provide proper abstractions. However, this runs contrary to Iced’s goals.

ahoyboyhoy,

@whynothugo @system76 @soller @mmstick are gtk and qt not supporting this feature and supporting non-free envs?

whynothugo,
@whynothugo@fosstodon.org avatar
soller,
@soller@fosstodon.org avatar

@whynothugo @ahoyboyhoy @system76 Supporting special mime types in iced is something I will be working on soon for our file manager.

whynothugo,
@whynothugo@fosstodon.org avatar

@soller @ahoyboyhoy @system76 Very happy to hear this! 🙏 Looking forward to it.

(BTW: these are not“special” mime types; they’re simply not text/plain)

mmstick,
@mmstick@fosstodon.org avatar

@whynothugo @ahoyboyhoy @system76 Keep in mind that we are not using iced directly, but libcosmic, which uses a fork of iced and has additional Wayland capabilities integrated.

whynothugo,
@whynothugo@fosstodon.org avatar

@mmstick @ahoyboyhoy @system76 Oh, I was completely unaware of this. I thought libcosmic used Iced-vanilla as a dependency. I’ll have a closer look next week (after fosdem).

mmstick,
@mmstick@fosstodon.org avatar

@whynothugo You will notice that COSMIC applets use the sctk feature instead of winit, which provides direct integration with Wayland via the smithay-client-toolkit.

However, we would prefer to use winit for desktop applications because that enables cross-platform support. To that end, we are always working on integrating these features into winit when possible, and then rebasing iced when those changes are merged there.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • tacticalgear
  • DreamBathrooms
  • cisconetworking
  • khanakhh
  • mdbf
  • magazineikmin
  • modclub
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • ngwrru68w68
  • JUstTest
  • everett
  • tester
  • cubers
  • normalnudes
  • thenastyranch
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines