main-executable: add ATL_SKIP_NATIVES_EXTRACTION env

This commit is contained in:
Mis012
2024-05-07 22:25:32 +02:00
parent 134bc9e7a5
commit ab2eaffe91
2 changed files with 4 additions and 1 deletions

View File

@@ -117,6 +117,7 @@ JNIEnv* create_vm(char *api_impl_jar, char *apk_classpath, char *microg_apk, cha
void icon_override(GtkWidget *window, GList *icon_list) {
GdkSurface *window_surface = gtk_native_get_surface(GTK_NATIVE(window));
// set app icon as window icon; this is a noop on Wayland because there is currently no way to set a window icon on Wayland
gdk_toplevel_set_icon_list(GDK_TOPLEVEL(window_surface), icon_list);
}
@@ -382,7 +383,8 @@ static void open(GtkApplication *app, GFile** files, gint nfiles, const gchar* h
extract_from_apk("assets/", "assets/");
/* extract native libraries from apk*/
extract_from_apk("lib/" NATIVE_ARCH "/", "lib/");
if(!getenv("ATL_SKIP_NATIVES_EXTRACTION"))
extract_from_apk("lib/" NATIVE_ARCH "/", "lib/");
prepare_main_looper(env);