• 474 Posts
  • 348 Comments
Joined 2 years ago
cake
Cake day: June 14th, 2023

help-circle



  • I run Fedora Silverblue on a N100.

    It’s very usable. For most actions, it feels pretty similar to my much more powerful desktop. but has some limitations.

    • I am able to run two 1440p monitors at 144hz via HDMI, but the screen occasionally blacks out for a second due to HDMI limitations. Running at a lower refresh rate should avoid the issue.
    • Gnome shell animations aren’t running at 144hz, even with triple buffering (never tested if it maintains 144hz with just one monitor at 1440p). Haven’t tested KDE.
    • I am able to comfortably run Minecraft with 60+ fps with performance enhancing mods, though at like 5 chunks rendering distance. Honestly it’s fun to play this way, feels nostalgic. Though performance will dramatically drop if you try to play a video at the same time, though dropping it to like 480p or even 720p helps a lot.

  • Oh I understand now, you’re referring to making AppArmor profiles to target a specific app. I just did a little research and it’s possible to create AppArmor policies for binaries that are in a user’s home folder.

    Rather than hardcoding a specific user’s home, you can instead say “@{HOME}”. So you could create a profile for “@{HOME}/.local/share/flatpak/app/appID/current/active/files/bin/binaryName” that would confine the app for all users.





  • I don’t fully understand what you mean.

    With flatpak, you have the option of installing applications on the system (/var/lib/flatpak) or for a single user (~.local/share/flatpak). And application data for each gets stored in ~/.var/app.

    AppArmor should confine the same regardless of which user is running the package. Besides, the flatpak’s main sandboxing comes from bubblewrap. Though the distro’s default AppArmor profiles can further be used to sandbox more stuff.





























  • Ah I had the same issue. JavaFX still uses X11. By default VSCode only lets X11 be used if Wayland is not available (this is the X11 fallback permission). Disabling X11 fallback will let VSCode use Wayland and let JavaFX use X11. I might make an issue for this on the flatpak’s GitHub asking for this change.

    Honestly, the truth is that setting up containers for development will always be a hassle. My low tech way is just to make a distrobox container with its own home folder, install an IDE in it, and install packages. The more proper way to do it would create your own containerfile to build your container for developing.

    VSCode also has its DevContainers extension but that doesn’t work in VSCodium and does some weird things.


  • Flatpak’s usefulness for programming depends on the IDE and language. IDEs like VSCode largely suck because they are not designed to work in flatpak. But some languages still do work well in them, such as Rust, since Flathub provides the Rust SDK and dependency management is done with cargo. But it sucks for C++, where you typically install dependencies using your system package manager.

    IDEs like Gnome Builder are pretty good. It’s designed to work within the flatpak sandbox. Even when running as a flatpak, you can choose to build things using containers or your host system. And of course also build using the Freedesktop runtimes.

    I recently setup JavaFX with the flatpak version of VSCodium and have it working pretty well. You first need to install the Java SDK from Flathub, set an env variable to tell VSCode to load the SDK. The more annoying part was JavaFX since it’s not part of the JDK anymore. I just downloaded the JavaFX tar, extracted to a directory called JavaFX, and set $JAVAFX_HOME to point to it. Since VSCode has host filesystem access, it can access it. Few more steps than traditional Linux, sure, but still easier than MacOS and Windows.

    Not sure about your database situation though.