548
submitted 8 months ago by IverCoder@lemm.ee to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Blackmist@feddit.uk 33 points 8 months ago

Likes like Hello World is ready to ship.

[-] IverCoder@lemm.ee 27 points 8 months ago* (last edited 8 months ago)

With a bit of modifying code to use the color picker and maybe rearranging the workflow to adapt to the new system, apps as advanced as DaVinci Resolve and LibreOffice can have permissions as restrictive as this (the network permission would of course may be needed but it would still be marked as Safe by Flathub).

You can use the file picker API to open the files or folders your app would need to access while having no filesystem permissions at all. You can access the camera, microphone, and GPS without the user devices portal, by simply using the respective portals where the user has the power to allow or deny access to such devices as they wish.

You can record the screen, take a screenshot, and pick a color in the screen by simply calling the proper portals, with the bonus that the user will be able to select if they want the entire screen, a specific window, or a specific area to be recorded/captured and whether the cursor should be shown or not.

Heck, even TeamViewer can be as this restricted without losing any functionality if they use the Screen Cast portal which allows apps to mirror input from a remote device! They would of course need the network permission, but that's still safe.

[-] areyouevenreal@lemm.ee 4 points 8 months ago

Does all of this require flatpack specific APIs?

[-] Markaos@lemmy.one 9 points 8 months ago

Yes in the sense that the APIs were made because of flatpak, but not in the sense that devs would need to keep two separate code paths for flatpak vs non-flatpak - portals work everywhere.

[-] areyouevenreal@lemm.ee 1 points 7 months ago* (last edited 7 months ago)
[-] Markaos@lemmy.one 1 points 7 months ago
[-] areyouevenreal@lemm.ee 1 points 7 months ago

There is no need to downvote someone over a question.

[-] Markaos@lemmy.one 1 points 7 months ago

I haven't done that, lemmy.one doesn't even have downvotes

[-] areyouevenreal@lemm.ee 1 points 7 months ago
this post was submitted on 06 Nov 2023
548 points (94.6% liked)

Linux

45530 readers
1171 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 5 years ago
MODERATORS