From 36f661e401ea07bd47ebcb484217d9ebd7d9f1d7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 6 Nov 2024 18:06:47 +0100 Subject: gtk is ass, set wayland app id --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 56d5fcf..a8a3295 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4107,7 +4107,10 @@ int main(int argc, char **argv) { } } - GtkApplication *app = gtk_application_new("com.dec05eba.gpu_screen_recorder", G_APPLICATION_NON_UNIQUE); + char app_id[] = "com.dec05eba.gpu_screen_recorder"; + argv[0] = app_id; + + GtkApplication *app = gtk_application_new(app_id, G_APPLICATION_NON_UNIQUE); g_signal_connect(app, "activate", G_CALLBACK(activate), NULL); int status = g_application_run(G_APPLICATION(app), argc, argv); g_object_unref(app); -- cgit v1.2.3