Skip to content

Commit

Permalink
background: Communicate killing apps better
Browse files Browse the repository at this point in the history
Print a more helpful message, and don't hide it behind a debug flag.

Closes: #1104
Closes: #1009
  • Loading branch information
GeorgesStavracas committed Sep 25, 2023
1 parent e0e359c commit 04bfd72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,11 @@ notify_background_done (GObject *source,
if (nd->perm != PERMISSION_ASK)
nd->perm = PERMISSION_NO;

g_debug ("Kill app %s (pid %d)", nd->app_id, nd->child_pid);
g_message ("Terminating app %s (process %d) because the app does not "
"have permission to run in the background. You may be able to "
"grant this app the permission to run in background in the "
"system settings of your desktop environment.",
nd->app_id, nd->child_pid);

kill (nd->child_pid, SIGKILL);
}
Expand Down

0 comments on commit 04bfd72

Please sign in to comment.