GUI Application Development

Is it possible for a coder workspace to be set up to support development of apps that use a GUI? Things such as JavaFX, PyQT and other toolkits for GUI development.
20 Replies
Codercord
Codercord5mo ago
<#1261689865456844831>
Category
Other
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys5mo ago
hello
Phorcys
Phorcys5mo ago
Phorcys
Phorcys5mo ago
for Linux you use noVNC and for Windows there's a module that uses Devolutions Gateway
Shyzus
ShyzusOP5mo ago
Ah I see, thank you very much for helping me out!
Phorcys
Phorcys5mo ago
for noVNC, you can see how I do it in my template with TigerVNC and XFCE https://github.com/uwu/basic-env/blob/main/docker/base/Dockerfile
Shyzus
ShyzusOP5mo ago
I see these mostly utilize X11. Have there been attempts with wayland aswell?
Phorcys
Phorcys5mo ago
i have not tried, but so long as your VNC server supports wayland then you should be good except I think they usually don't there's wayvnc
Shyzus
ShyzusOP5mo ago
Time for experimentation it is. It would surely help with any GUI development that needs testing on wayland.
Phorcys
Phorcys4mo ago
let me know how this goes! hey @Shyzus, any luck?
Shyzus
ShyzusOP4mo ago
kind off yeah
Shyzus
ShyzusOP4mo ago
Dockerfile for the image I hacked togheter using bits of the old deprecated but also the new base image.
Shyzus
ShyzusOP4mo ago
and the main.tf file:
Shyzus
ShyzusOP4mo ago
@Phorcys
Phorcys
Phorcys4mo ago
cool! thanks for sharing :-)
Shyzus
ShyzusOP4mo ago
there is one downside that im trying to remedy by just creating a different base image altogheter seems there is some issue with the XFCE DE. that if you were to run apt upgrade for example it would mark the entire DE as auto-removable packages and if you pressed yes it just destroys the workspace.
Phorcys
Phorcys4mo ago
woah that's weird
Shyzus
ShyzusOP4mo ago
not sure where the failure for that happens as the image should installing XFCE onto the plain ubuntu base image coder provides. but im working on an alternative for now that uses Fedora. but right now it works perfectly well using XFCE. so 👍 oh and a fun thing to note. if you were using the NoVNC window but you didn't really want to install vscode or simply don't like the XFCE GUI for writing code. you can just open your workspace on your own vs code desktop. By passing an environment variable(ex: DISPLAY=0:) to whatever command would create a GUI application. It spawns a GUI application right on the NoVNC window and you can interact with it just fine while having a debug process attached on your machine's vscode instance.
Phorcys
Phorcys4mo ago
for VSCode you can use code-server but thanks for the tip! i've been looking into doing this for specific applications like JetBrains IDEs that don't have a supported web version anymore broadwayd can do this too but it's limited since it's a GTK utility and won't work with some apps
Codercord
Codercord3mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server