So I recently had to compile Thunar 4.19.2 for Xubuntu 22.04, and saw this issue still exists there, so dug into it again. And this time was able to come up with a small patch to Thunar 4.19.2 that fix the issue (probably not the best fix, since I don't actually know what I'm doing in C/C++, but it seems to do the job so should at least point in the right direction).
This would ideally be brought to upstream Thunar/Xfce devs' attention at https://gitlab.xfce.org/xfce/thunar/-/issues But I was unsuccessful in looking into registering an account there. So I'm posting the patch below. Could someone please notify Thunar/Xfce devs about this bug & the below tentative patch? Thanks :)
So I recently had to compile Thunar 4.19.2 for Xubuntu 22.04, and saw this issue still exists there, so dug into it again. And this time was able to come up with a small patch to Thunar 4.19.2 that fix the issue (probably not the best fix, since I don't actually know what I'm doing in C/C++, but it seems to do the job so should at least point in the right direction).
This would ideally be brought to upstream Thunar/Xfce devs' attention at https:/ /gitlab. xfce.org/ xfce/thunar/ -/issues But I was unsuccessful in looking into registering an account there. So I'm posting the patch below. Could someone please notify Thunar/Xfce devs about this bug & the below tentative patch? Thanks :)
____________
diff --git a/thunar/ thunar- dnd.c b/thunar/ thunar- dnd.c thunar- dnd.c thunar- dnd.c END_IGNORE_ DEPRECATIONS
g_list_ free (providers);
index 1a28cfd..c755dce 100644
--- a/thunar/
+++ b/thunar/
@@ -151,17 +151,21 @@ G_GNUC_
}
/* check if we have at least one item */ gtk_menu_ thunarx_ menu_item_ new (lp->data, GTK_MENU_SHELL (menu)); gtk_menu_ thunarx_ menu_item_ new (lp->data, GTK_MENU_SHELL (menu)); show(item) ; show_all( item);
g_list_ free (items);
if (G_UNLIKELY (items != NULL))
{
/* add menu items for all items */
for (lp = items; lp != NULL; lp = lp->next)
- thunar_
+ {
+ item = thunar_
+ gtk_widget_
+ gtk_widget_
+ }
/* append another separator */ menu_item_ new ();
gtk_menu_ shell_append (GTK_MENU_SHELL (menu), item);
gtk_widget_ show (item);
item = gtk_separator_
}
}