Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Revert Linux window icon changes - not working

Prateek Sunal6d25edf31236
diff --git a/mobile/apps/auth/linux/my_application.cc b/mobile/apps/auth/linux/my_application.cc
index fd98eff85b..d47ed2a5db 100644
--- a/mobile/apps/auth/linux/my_application.cc
+++ b/mobile/apps/auth/linux/my_application.cc
@@ -122,18 +122,11 @@ static gboolean my_application_local_command_line(GApplication *application, gch
// Implements GApplication::startup.
static void my_application_startup(GApplication *application)
{
- G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
+ // MyApplication* self = MY_APPLICATION(object);
- // Set default window icon from bundled assets
- gchar *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_default_icon_from_file(icon_path, nullptr);
- g_free(icon_path);
- g_free(exe_dir);
- g_free(exe_path);
- }
+ // Perform any actions required at application startup.
+
+ G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
}
// Implements GApplication::shutdown.