Missing right-click+drag > "Extract here" menu item
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
thunar (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Xubuntu 22.04 (but also reproducible in 21.10)
When right-click+drag an archive file from one Thunar window to another, the "Extract here" menu item is not present. The drag&drop menu only shows the "Copy here", "Move here", "Link here", and "Cancel" items.
Other context menu items from thunar-
This problem does not exist in Xubuntu focal. For what it's worth, as a test I was able to compile the focal version of Thunar on 22.04, keeping the 22.04 version of thunar-
I'm not sure if this bug is thunar issue or thunar-
Affected Thunar version:
$ apt-cache policy thunar
thunar:
Installed: 4.16.10-1
Candidate: 4.16.10-1
Version table:
*** 4.16.10-1 500
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: thunar-
ProcVersionSign
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu78
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Sat Feb 26 11:41:27 2022
InstallationDate: Installed on 2022-02-26 (0 days ago)
InstallationMedia: Xubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220225)
SourcePackage: thunar-
UpgradeStatus: No upgrade log present (probably fresh install)
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_
}
}