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.1.6.tar.gz (5.0 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: bounce_desktop-0.1.6.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.1.6.tar.gz
Algorithm Hash digest
SHA256 3e90a8df611f6f8c4926064f94c2c51638795eb63aceffd05396d221d09e8c55
MD5 e88e5a0a81ca7730e446f013756ff274
BLAKE2b-256 1355f1d3aad5103efac61033acc4a41ab4b9721570a3899f90e8b0e6589d1f5c

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