application: Drop ignore_activation flag

Rather use gapplication service. This makes the flow similar to what
Chatty does and makes us hold/release rather than having an application
window.

It also allows us to drop the --daemon.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/760>
This commit is contained in:
Guido Günther
2024-10-03 14:35:37 +02:00
committed by Evangelos Ribeiro Tzaras
parent fbfe680f6a
commit 574e1f79a3
4 changed files with 14 additions and 32 deletions

View File

@@ -26,7 +26,7 @@ static void
test_application_shutdown_daemon (void)
{
CallsApplication *app = calls_application_new ();
char *argv[] = { "test", "--daemon", "-p", "dummy", NULL };
char *argv[] = { "test", "--gapplication-service", "-p", "dummy", NULL };
int status;
g_idle_add (on_idle_quit, app);
@@ -135,10 +135,11 @@ main (int argc,
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/Calls/application/shutdown_daemon", (GTestFunc) test_application_shutdown_daemon);
g_test_add_func ("/Calls/application/shutdown_no_daemon", (GTestFunc) test_application_shutdown_no_daemon);
g_test_add_func ("/Calls/application/shutdown_delayed", (GTestFunc) test_application_shutdown_delayed);
g_test_add_func ("/Calls/application/shutdown_sigterm", (GTestFunc) test_application_shutdown_sigterm);
/* Last test so we don't need to bother if --gpplication-service keeps us alive a bit longer */
g_test_add_func ("/Calls/application/shutdown_daemon", (GTestFunc) test_application_shutdown_daemon);
status = g_test_run ();