Skip to content

Commit

Permalink
Regression: Skip app info updates on sendto actions (Issue #502)
Browse files Browse the repository at this point in the history
Was already fixed by 9c87733. That fix
was rendered unusable by massive code-changes later on.

Fixes #502
  • Loading branch information
Alexander Schwinn committed Feb 9, 2021
1 parent 6588ac1 commit f51b366
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions thunar/thunar-launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,10 @@ thunar_launcher_open_files (ThunarLauncher *launcher,
if (application_to_use)
{
app_info = g_app_info_dup (application_to_use);

/* Foreign data needs to be set explicitly to the new app_info */
if (g_object_get_data (G_OBJECT (application_to_use), "skip-app-info-update") != NULL)
g_object_set_data (G_OBJECT (app_info), "skip-app-info-update", GUINT_TO_POINTER (1));
}
else
{
Expand Down Expand Up @@ -1857,6 +1861,7 @@ thunar_launcher_build_sendto_submenu (ThunarLauncher *launcher)
item = xfce_gtk_image_menu_item_new (label_text, tooltip_text, NULL, G_CALLBACK (thunar_launcher_menu_item_activated),
G_OBJECT (launcher), image, GTK_MENU_SHELL (submenu));
g_object_set_qdata_full (G_OBJECT (item), thunar_launcher_appinfo_quark, g_object_ref (lp->data), g_object_unref);
g_object_set_data (G_OBJECT (lp->data), "skip-app-info-update", GUINT_TO_POINTER (1));

/* cleanup */
g_free (label_text);
Expand Down

0 comments on commit f51b366

Please sign in to comment.