π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix Linux window icon using GdkPixbuf for direct binary launch
Prateek Sunal6b7716954091
diff --git a/mobile/apps/auth/linux/my_application.cc b/mobile/apps/auth/linux/my_application.ccindex aa1919e856..ce0d32b535 100644--- a/mobile/apps/auth/linux/my_application.cc+++ b/mobile/apps/auth/linux/my_application.cc@@ -84,13 +84,17 @@ static void my_application_activate(GApplication *application)gtk_window_set_default_size(window, 1280, 720);- // Set window icon from bundled asset for when running without .desktop file- g_autoptr(GError) icon_error = nullptr;+ // Set window icon for when running without .desktop file+ // Try loading from bundled assets firstgchar *exe_path = g_file_read_link("/proc/self/exe", nullptr);if (exe_path != nullptr) {gchar *exe_dir = g_path_get_dirname(exe_path);gchar *icon_path = g_build_filename(exe_dir, "data", "flutter_assets", "assets", "icons", "auth-icon.png", nullptr);- gtk_window_set_icon_from_file(window, icon_path, &icon_error);+ GdkPixbuf *icon = gdk_pixbuf_new_from_file(icon_path, nullptr);+ if (icon != nullptr) {+ gtk_window_set_icon(window, icon);+ g_object_unref(icon);+ }g_free(icon_path);g_free(exe_dir);g_free(exe_path);