This is an automated email from the git hooks/post-receive script. a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository xfce/thunar.
commit e1b9b1726a39091ed9c6efc54b4168e7bce14538 Author: Alexander Schwinn <ac...@gmx.de> Date: Mon Dec 18 00:21:59 2017 +0100 Prevent crash after updating thunar if old thunar deamon is still running - part II "g_application_register" before "g_application_run" has negative sideeffects. So "g_application_register" was moved below in order to trigger after "g_application_run" failed. This makes a restart of thunar necesarry after daemon-kill. --- thunar/main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/thunar/main.c b/thunar/main.c index f541233..7e1d941 100644 --- a/thunar/main.c +++ b/thunar/main.c @@ -87,9 +87,10 @@ thunar_dialog_ask_terminate_old_daemon_activate (GtkApplication* app, gpointer u window = gtk_application_window_new (app); dialog = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, - _("Thunar cannot be launched because an older instance of thunar is still running.\n" - "Would you like to terminate the old thunar instance and start this instance?\n\n" - "Before accepting please make sure there are no pending operations (e.g. file copying) as terminating them may leave your files corrupted.")); + _("Thunar could not be launched because an older instance of thunar is still running.\n" + "Would you like to terminate the old thunar instance now?\n\n" + "Before accepting please make sure there are no pending operations (e.g. file copying) as terminating them may leave your files corrupted.\n\n" + "Please restart thunar afterwards.")); result = gtk_dialog_run (GTK_DIALOG (dialog)); if (result == GTK_RESPONSE_YES) thunar_terminate_running_thunar (); @@ -160,6 +161,9 @@ main (int argc, char **argv) /* use the Thunar icon as default for new windows */ gtk_window_set_default_icon_name ("Thunar"); + /* do further processing inside gapplication */ + g_application_run (G_APPLICATION (application), argc, argv); + /* Workaround to bypass "silent fail" if new thunar version is installed while an old version still runs as daemon */ /* FIXME: "g_application_register" and the following logic can be removed as soon as g_application/gdbus provides a way to prevent this error */ g_application_register (G_APPLICATION (application), NULL, &error); @@ -170,9 +174,6 @@ main (int argc, char **argv) g_error_free (error); } - /* do further processing inside gapplication */ - g_application_run (G_APPLICATION (application), argc, argv); - /* release the application reference */ g_object_unref (G_OBJECT (application)); -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits