Skip to main content

Hardware-accelerated Linux virtual desktops.

Project description

Bounce Desktop

Bounce Desktop is a cpp library and python package for starting and interacting with lightweight hardware-accelerated virtual desktops. It does this by running VNC-backed Weston sessions and then connecting to them with a VNC client.

I've written Bounce Desktop to serve as a desktop platform for my RL with Games framework: BounceRL.

Dependencies

poetry, libvncserver (optional), gmock, gtest, libgvnc (from gtk-vnc)

Getting started

If you want just want the python package, you'll first need to install the system dependencies listed above. Then you can run this pip command:

pip install bounce_desktop

Usage

I don't have docs or clear examples handy, but for starter pointers, see: src/desktop/client.h, bounce_desktop/bounce_desk_test.py, and src/bindings/client_exe.h.

Limitations

Running multiple desktops from a single process isn't supported yet. I'd like to support this use case, but there are some threading details to work through in the libgvnc client and SDL viewer. Until then, if you do want to test the threaded set up, pass in "true" to the the "allow_unsafe" arg for the client or viewer.

Roadmap

This project's being developed to support BounceRL, so I'll be focusing development toward that project's needs. With that said, I do think there's value in having a lightweight virtual desktop library available, and I do think one could develop this project toward that goal if they're interested.

I also think this project should be close to feature complete at this point, I may at some point integrate the prototyped, but unused, subprocess reaper into the desktop class, so that callers can get guaranteed process clean-up, but we'll see if or when I need that feature.

Contributing

I don't plan on accepting pull requests in the near term, but I'll take a look at any issues or feature requests you open.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bounce_desktop-0.2.0.tar.gz (5.0 MB view details)

Uploaded Source

File details

Details for the file bounce_desktop-0.2.0.tar.gz.

File metadata

  • Download URL: bounce_desktop-0.2.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for bounce_desktop-0.2.0.tar.gz
Algorithm Hash digest
SHA256 77dda015052c5177acd5e238716ee1a2b1e7d1efe944be1f0757aa2a4a630729
MD5 267416bd161be9236053743e51895b6c
BLAKE2b-256 dbb0157aa29af3f983007815c866bc8de21eac1407f50f207311fcf5d7386cdd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page