Include extension point for GTK modules
Context
At Endless we're developing a tool to be able to highlight certain elements in GTK+ apps. This is a perfect use-case for a GTK module, however, FDo runtimes don't include an extension to be able to mount such modules.
Description
We should declare this extension point as org.gtk.Gtk3Module
. They should be mounted in /usr/lib/gtk-3.0/3.0.0/modules
, and the modules
folder is merged from the extensions. Thus, extensions need to have the org.gtk.Gtk3Module
as a prefix in their name, and contain the shared lib that represents the module inside a modules
folder.
Please find a Merge Request in !499 (closed) . I have also sent a similar PR to the 1.6 version: https://github.com/flatpak/freedesktop-sdk-images/pull/117 .
Acceptance Criteria
-
Installed extensions with a name prefix of org.gtk.Gtk3module
get mounted in the/usr/lib/gtk-3.0/3.0.0/modules
folder; -
When launching a GTK+ app with that runtime and the mounted extension, the modules specified in a GTK3_MODULES
environment variable (by the user) get dynamically loaded by GTK+.
Edited by Joaquim Rocha