How can I use podman to run a wayland app

I want to use bumblebee. Its a status bar for wayland written in python. How can I run this from a container and have it display on my silver blue desktop?

1 Like

So it turns out the app I was using just uses stdout and sway handles rendering of the bar. In this case at least the below was enough. Hopefully my solution will help some folks with podman usage anyway.

Docker file

FROM python:3
COPY ../bumblebee-status /bumblebee-status
RUN pip3 install psutil requests netifaces 
CMD python3 ./bumblebee-status/bumblebee-status -m cpu

swaybar config:

bar {
    colors {
        background #1d2021
        statusline #ebdbb2
    }
    font xft:Inconsolata 12
    status_command podman run 1c3927f6ac94
}
1 Like

To run wayland/x11/pulseaudio enabled containers with podman I’ve been using these arguments:

args=(
    # Disable SELinux label to enable mounting runtime socket
    --security-opt label=disable
    # Enable legacy X11
    -v /tmp/.X11-unix/:/tmp/.X11-unix/
    -e DISPLAY=:0
    # Enable xdg runtime for wayland and pulseaudio socket  
    -v /run/user/1000/:/run/user/1000/
    -e XDG_RUNTIME_DIR=/run/user/1000
    -e PULSE_SERVER=/run/user/1000/pulse/native
    # fix XError bad access
    --ipc host
)
podman run ${args[@]} ...
3 Likes

This is awesome can’t wait to try it out!