This repository contains some helper items for working with the graphics-core24 snap interface:
-
bin/graphics-core24-wrapper
You should prime this script in your snap and use it in yourcommand-chain:
for all apps requiring GPU support:apps: app: plugs: - opengl - wayland command-chain: - bin/graphics-core24-wrapper command: usr/bin/eglinfo
NB: the script assumes that
graphics-core24.target:
is set to$SNAP/graphics
. -
bin/graphics-core24-cleanup
This is a script to help avoid priming any libraries provided by the graphics-core24 providers. You should run it inoverride-prime:
of the part whose source is this repository,after:
any parts that stage any libraries, passing the names of the providers you want to make sure you're compatible with:parts: my-app: stage-packages: # ... graphics-core24: after: [my-app] source: https://github.com/MirServer/graphics-core24.git plugin: dump override-prime: | craftctl default ${CRAFT_PART_SRC}/bin/graphics-core24-cleanup mesa-core24 nvidia-core24 prime: - bin/graphics-core24-wrapper
For more information about the graphics-core24
interface, see: The graphics-core24 snap interface documentation.