NotificationManager: delete ongoing and MediaStyle notifications on exit

The XDG Portal API doesn't have a concept of ongoing notifications.

MediaStyle notifications could be changed to MPRIS in the future.
This commit is contained in:
Julian Winkler
2024-03-18 15:41:44 +01:00
parent acb00a8beb
commit cdcc3411aa
5 changed files with 35 additions and 7 deletions

View File

@@ -472,6 +472,7 @@ void init_cmd_parameters(GApplication *app, struct jni_callback_data *d)
}
void init__r_debug();
void remove_ongoing_notifications();
int main(int argc, char **argv)
{
@@ -500,6 +501,7 @@ int main(int argc, char **argv)
g_signal_connect(app, "open", G_CALLBACK (open), callback_data);
status = g_application_run(G_APPLICATION(app), argc, argv);
g_object_unref(app);
remove_ongoing_notifications();
return status;
}