feat: wire the logo in as app icon and splash

This commit is contained in:
randogoth 2026-10-11 22:58:02 +03:00
parent dcb70a93d1
commit 8426818712
14 changed files with 129 additions and 21 deletions

View file

@ -54,6 +54,16 @@ static void my_application_activate(GApplication* application) {
gtk_window_set_default_size(window, 1280, 720);
// The window wears the bundled logo, which lives beside the binary with
// the Flutter assets, where the engine also finds it.
g_autofree gchar* exe_path = g_file_read_link("/proc/self/exe", NULL);
if (exe_path != NULL) {
g_autofree gchar* exe_dir = g_path_get_dirname(exe_path);
g_autofree gchar* icon_path = g_build_filename(
exe_dir, "data", "flutter_assets", "assets", "logo.png", NULL);
gtk_window_set_icon_from_file(window, icon_path, NULL);
}
g_autoptr(FlDartProject) project = fl_dart_project_new();
fl_dart_project_set_dart_entrypoint_arguments(
project, self->dart_entrypoint_arguments);