this post was submitted on 01 Jun 2026
34 points (97.2% liked)

Linux

65656 readers
273 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Sinfaen@beehaw.org 3 points 1 week ago (1 children)

I don't know how you add a call to an API that doesn't exist

as a solo dev, I honestly feel for him. It's just too much work to actually even think about when you have other environments to support

[–] mrbn@lemmy.ca 1 points 6 days ago

I don't know how you add a call to an API that doesn't exist

As far as I know, these messages are passed to the portal using dbus. So the app could just fire the correct dbus message with correct parameters (you can find the correct values in the Wayland specs). The portal, used by the compositor, then takes the message and runs the requested action or returns something like not implemented or unknown method.

The trickier part is testing when no portal supports the API calls.

But yeah, interoperability between systems can be a pain in the ass.

The process is analogous to sending an http request. Your app sets up the httpclient and points it to a URI and after sending the request you get back either the content with 200 status or 404. If you get 404 you can show the user a message like "this website doesnt support feature xyz"