Add OCI image and container desktop launcher
Build a release OCI image with runtime dependencies and a rootless Podman launcher for Wayland and PipeWire. Install the runner, app-menu entry, and icons per user without replacing the native executable. Use Ubuntu 26.04 and GTK 4.22 for linux-dmabuf v6 compatibility. Allow an explicit icon-theme override so the container uses its bundled Adwaita assets. Document installation and add runner/desktop regression tests.
This commit is contained in:
1 parent
1746884744
commit
b1f0965e02
8 files changed
+416
No files matched your search
@@ -49,6 +49,11 @@ MOONBIT_FFI_EXPORT int32_t mm_gtk_init(void) {
|
||||
g_set_prgname("org.latha.moonmix");
|
||||
if (!gtk_init_check())
|
||||
return 0;
|
||||
/* A container may not ship the icon theme advertised by the host portal.
|
||||
* Override only when requested; native installations keep the desktop theme. */
|
||||
const char *icon_theme = g_getenv("MOONMIX_ICON_THEME");
|
||||
if (icon_theme && *icon_theme)
|
||||
g_object_set(gtk_settings_get_default(), "gtk-icon-theme-name", icon_theme, NULL);
|
||||
/* Let an uninstalled checkout find data/icons/hicolor/... too:
|
||||
* $MOONMIX_ICON_DIR, then ./data/icons. */
|
||||
GtkIconTheme *theme = gtk_icon_theme_get_for_display(gdk_display_get_default());
|
||||
|
||||
Reference in new issue
Block a user