Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added desktop (x11 xfce) image #213

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Mollomm1
Copy link
Contributor

@Mollomm1 Mollomm1 commented Feb 11, 2025

image
I created a desktop image that include a xfce desktop with flatpak support.

(composing is disabled by default, it can be enabled in settings)

here the app config

[[apps]]
start_virtual_compositor = true
title = 'Desktop'

    [apps.runner]
    base_create_json = '''{
  "HostConfig": {
    "IpcMode": "host",
    "CapAdd": ["SYS_ADMIN", "SYS_NICE", "SYS_PTRACE", "NET_RAW", "MKNOD", "NET_ADMIN"],
    "SecurityOpt": ["seccomp=unconfined", "apparmor=unconfined"],
    "Ulimits": [{"Name":"nofile", "Hard":10240, "Soft":10240}],
    "Privileged": false,
    "DeviceCgroupRules": ["c 13:* rmw", "c 244:* rmw"]
  }
}
'''
    devices = []
    env = [ 'GOW_REQUIRED_DEVICES=/dev/input/* /dev/dri/* /dev/nvidia*' ]
    image = 'gow-desktop'
    mounts = []
    name = 'Desktop'
    ports = []
    type = 'docker'

Copy link
Member

@ABeltramo ABeltramo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

I'll test it more as soon as I have a bit of free time. Just a quick comment below and a question: is flatpack storing everything in $HOME or do we have to add something? I'm on mobile so I might have missed something..

images/desktop/Dockerfile Outdated Show resolved Hide resolved
@Mollomm1
Copy link
Contributor Author

Thanks for working on this!

I'll test it more as soon as I have a bit of free time. Just a quick comment below and a question: is flatpack storing everything in $HOME or do we have to add something? I'm on mobile so I might have missed something..

flathub is installed as user mode so everything is stored under $HOME/.var/app.

@ABeltramo
Copy link
Member

I gave it a quick spin locally, and I think the base idea is solid: using flatpak in user mode is really keeping everything nice and tidy under $HOME, I love it!

Just encountered an issue when trying to run the most stupid app I could find: calculator. I'm going to log it here:

dbus-daemon[227]: [session uid=1000 pid=227] Activating service name='org.freedesktop.Flatpak' requested by ':1.18' (uid=1000 pid=367 comm="/usr/bin/flatpak run --branch=stable --arch=x86_64")
dbus-daemon[227]: [session uid=1000 pid=227] Successfully activated service 'org.freedesktop.Flatpak'
dbus-daemon[227]: [session uid=1000 pid=227] Activating service name='org.freedesktop.portal.Documents' requested by ':1.18' (uid=1000 pid=367 comm="/usr/bin/flatpak run --branch=stable --arch=x86_64")
dbus-daemon[227]: [session uid=1000 pid=227] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.20' (uid=1000 pid=378 comm="/usr/libexec/xdg-document-portal")
dbus-daemon[227]: [session uid=1000 pid=227] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[227]: [session uid=1000 pid=227] Successfully activated service 'org.freedesktop.portal.Documents'
Ignoring invalid max threads value 4294967295 > max (100000).
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
qt.qpa.plugin: Could not find the Qt platform plugin "x11" in ""
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

@ABeltramo
Copy link
Member

I've fixed the QT issue by adding

flatpak override --user --nosocket=wayland

can you confirm this doesn't break anything on your side too? Were you able to run the calculator (org.kde.kalk) on your side?

@ABeltramo ABeltramo linked an issue Feb 12, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dockerfile for ubuntu desktop
2 participants