Graphical applications which use the GTK+ Toolkit require additional libraries and environment configuration to function correctly inside a snap.
The details have been collected into a remote part, which can be included in any snap at build time.
GTK2 based applications should use the
desktop-gtk2 remote part. GTK3 applications should reference the
In this snippet the remote part is referenced in an
parts: audiocoder: after: [desktop-gtk3]
In addition the launcher script which sets up the environment should prefix the binary name in the
apps section. Typically it’s also necessary to specify the full path to the target binary after the launcher.
apps: command: desktop-launch $SNAP/usr/bin/audiocoder-gtk plugs: [network, desktop, desktop-legacy]
These pre-defined parts do not automatically pull in all necessary GTK libraries, but the minimum required by most applications.
The developer is expected to list any further libraries as
stage-packages or additional