Notifies about needs-reboot when the installation fails
The git main branch at commit f3197a46.
I just had a case where an RPM app installation failed due to dependencies, about which the user was notified (GsPluginEvent
) and the GTask
ended with an error as well, but the app had set GS_APP_QUIRK_NEEDS_REBOOT
, thus the gs_page_app_installed_cb
runs a system notification that the app was installed and I need to restart the machine to take it into the effect, which is nonsense, because the app was not installed.
There is currently no way to avoid the notification, is it?
Backtrace of the notify
#0 gs_utils_reboot_notify (list=0x2b73b40, is_install=1) at ../src/gs-common.c:871
#1 0x0000000000475d62 in gs_page_app_installed_cb (source=0x8b6410, res=0x10dcf90, user_data=0x2469f20) at ../src/gs-page.c:153
#2 0x00007ffff7ae8b29 in g_task_return_now (task=0x10dcf90) at ../gio/gtask.c:1361
#3 0x00007ffff7ae8c75 in g_task_return (task=0x10dcf90, type=G_TASK_RETURN_SUCCESS) at ../gio/gtask.c:1430
#4 0x00007ffff7ae987e in g_task_return_pointer (task=0x10dcf90, result=0x2b73b40, result_destroy=0x422a80 <g_object_unref@plt>) at ../gio/gtask.c:1872
#5 0x00007ffff7f8478d in run_job_cb (source_object=0x2ea5590, result=0x2b4c840, user_data=0x0) at ../lib/gs-plugin-loader.c:3525
#6 0x00007ffff7ae8b29 in g_task_return_now (task=0x2b4c840) at ../gio/gtask.c:1361
#7 0x00007ffff7ae8c75 in g_task_return (task=0x2b4c840, type=G_TASK_RETURN_SUCCESS) at ../gio/gtask.c:1430
#8 0x00007ffff7ae9ca5 in g_task_return_boolean (task=0x2b4c840, result=1) at ../gio/gtask.c:1984
#9 0x00007ffff7f7609b in finish_op (task=0x2b4c840, error=0x0) at ../lib/gs-plugin-job-install-apps.c:438
#10 0x00007ffff7f75d93 in plugin_install_apps_cb (source_object=0xef4440, result=0x2b470b0, user_data=0x2b4c840) at ../lib/gs-plugin-job-install-apps.c:392
#11 0x00007ffff7ae8b29 in g_task_return_now (task=0x2b470b0) at ../gio/gtask.c:1361
#12 0x00007ffff7ae8b7e in complete_in_idle_cb (task=0x2b470b0) at ../gio/gtask.c:1375
#13 0x00007ffff78f05fd in g_idle_dispatch (source=0x7fff9c034900, callback=0x7ffff7ae8b66 <complete_in_idle_cb>, user_data=0x2b470b0) at ../glib/gmain.c:6150
#14 0x00007ffff78ece21 in g_main_dispatch (context=0x579300) at ../glib/gmain.c:3344
#15 0x00007ffff78edf69 in g_main_context_dispatch_unlocked (context=0x579300) at ../glib/gmain.c:4152
#16 0x00007ffff78ee12c in g_main_context_iterate_unlocked (context=0x579300, block=1, dispatch=1, self=0x55ede0) at ../glib/gmain.c:4217
#17 0x00007ffff78ee1f8 in g_main_context_iteration (context=0x579300, may_block=1) at ../glib/gmain.c:4282
#18 0x00007ffff7b2da12 in g_application_run (application=0x549370, argc=1, argv=0x7fffffffdae8) at ../gio/gapplication.c:2613
#19 0x000000000046ec14 in main (argc=1, argv=0x7fffffffdae8) at ../src/gs-main.c:49