forked from kljunas2/activate-linux
added arguments support
This commit is contained in:
@@ -65,8 +65,8 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct config conf;
|
struct config conf;
|
||||||
conf.title = "Activate Linux";
|
conf.title = argc>1 ? argv[1] : "Activate Linux";
|
||||||
conf.subtitle = "Go to Settings to activate Linux.";
|
conf.subtitle = argc>2 ? argv[2] : "Go to Settings to activate Linux.";
|
||||||
GtkApplication *app = gtk_application_new(NULL, G_APPLICATION_FLAGS_NONE);
|
GtkApplication *app = gtk_application_new(NULL, G_APPLICATION_FLAGS_NONE);
|
||||||
g_signal_connect(app, "activate", G_CALLBACK(activate), (void *) &conf);
|
g_signal_connect(app, "activate", G_CALLBACK(activate), (void *) &conf);
|
||||||
int status = g_application_run(G_APPLICATION(app), 0, NULL);
|
int status = g_application_run(G_APPLICATION(app), 0, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user