So I’m looking at trying am Immutable Linux Desktop (uBlue Aurora probably). One thing I’m not clear on is how to run GUI apps during development. From what I understand I should create a container with distrobox, install my toolchains in it and start developing. I’m used to containers for CLI and server work, but I’m not sure how it applies to the GUI (Wayland / KDE).

If I do a cargo run inside distrobox for a Rust GUI project will it just work? I saw that I can ‘export’ apps, but that is for already built executables whereas I will be building and rebuilding them.

9 points

I’ve used Bluefin and Aurora for some light web development. I created a container with toolbox (I assume things would be similar with distrobox) and did what I needed. When I needed, I could run npm start and it was as if I had developed locally.

permalink
report
reply
2 points

Are you accessing that through the browser? It might just be bridging the networking in that case.

permalink
report
parent
reply
7 points

You should be able to run any executable you like in your home directory. No need for any containers. Try it out with a Hello World app.

permalink
report
reply
7 points

The executable that I would be running is cargo (the rust build tool) but I want that inside of a container. I could cargo build inside the container and then execute the output binary on the host but then I lose things like hot-reload.

permalink
report
parent
reply
1 point

Since OP is using an immutable distro they are likely unable to install some dependencies they need without using a container.

permalink
report
parent
reply
14 points

In my experience it Just Works ™️. I spin up a distro/toolbox, compile some software (e.g. Emacs) then run the executable inside the container, and up pops the GUI window.

If you use distrobox, you can even distrobox-export desktop files, at which point a containerised gui application is practically indistinguishable from one installed on the host system

permalink
report
reply
5 points

Distrobox supports GUI Apps (XServer and Wayland)

permalink
report
reply
-7 points
Deleted by creator
permalink
report
reply
1 point

Do we have a lost lemmy users community yet?

permalink
report
parent
reply
2 points
permalink
report
parent
reply
2 points
*

Ah shit. That was weird. This post was near the casual conversation sub. Sorry about that.

ETA: thanks for the upvote to whoever appreciated my lack of sanity!

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

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

Community stats

  • 9.8K

    Monthly active users

  • 5.8K

    Posts

  • 162K

    Comments