• 21 Posts
  • 223 Comments
Joined 1 year ago
cake
Cake day: December 28th, 2023

help-circle









  • I still can’t fathom why electron needs to exist when PWA is a thing. Like, almost every app is just plain better running in a normal web browser instead of electron. Webapps never need to be updated manually, electron apps do (e.g. discord). Webapps are sandboxed inside the browser, electron has you running some rando developer’s code natively. With electron, you have to trust the developers of every app to keep the electron version up-to-date to avoid critical bugs (e.g. libwebp). With webapps, if your browser is patched, then every webapp is safe. Electron also suffers from random bugs and regressions that aren’t an issue in most web browsers.



  • renzev@lemmy.worldtolinuxmemes@lemmy.worldSnap...
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 months ago

    If you’re interested in another approach to containerizing GUI applications, also checkout out x11docker. It’s a small independent project maintained by one guy, nothing big like flatpak, but also pretty cool. The name is actually a bit limiting – it supports both docker and podman, and can run wayland apps as well. One of the coolest features, in my opinion, is the ability to run a separate X server inside every sandbox and forward individual windows to the “host” X server. That way you can prevent apps from spying on your keyboard or other apps’ windows.


  • renzev@lemmy.worldtolinuxmemes@lemmy.worldSnap...
    link
    fedilink
    arrow-up
    11
    ·
    2 months ago

    The thing with appimages is that they expect the developer to have full knowledge of what libraries need to be bundled with their app, which makes it difficult to make truly universal appimages. In flatpak you just select one of a set list of runtimes and add any additional dependencies on top of it. Flatpak also re-uses the files for each runtime in between the different apps that use it, which saves a lot of disk space.


  • renzev@lemmy.worldtolinuxmemes@lemmy.worldSnap...
    link
    fedilink
    arrow-up
    10
    ·
    2 months ago

    Why not containerise everything? You need libreoffice? No problem, here is a docker or podman container.

    Flatpak is basically GUI-optimized containers. It uses the same technology (namespaces) as docker and podman, just with some extra tools to make GUI-related things work properly. That’s why flatpak apps don’t use the system’s gtk version – they’re running in a sandbox with a different rootfs. You can spawn a shell into the sandbox of a specific app with flatpak run --command=sh com.yourapp.YourApp and poke around it if you want to.