Missing right-click+drag > "Extract here" menu item

Bug #1962372 reported by halogen2
6
This bug affects 1 person
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-archive-plugin are there and working (right-click *without* drag, "Extract Here" and "Extract To...").

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-archive-plugin, and that got the right-click+drag > Extract here menu item back.

I'm not sure if this bug is thunar issue or thunar-archive-plugin issue, but I was told in the following ubuntuforums thread to report this bug here in either case: https://ubuntuforums.org/showthread.php?t=2472206

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://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: thunar-archive-plugin 0.4.0-2
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu78
Architecture: amd64
CasperMD5CheckResult: pass
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-archive-plugin
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
halogen2 (halogen2) wrote :
description: updated
tags: added: regression-release
Revision history for this message
halogen2 (halogen2) wrote :

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
index 1a28cfd..c755dce 100644
--- a/thunar/thunar-dnd.c
+++ b/thunar/thunar-dnd.c
@@ -151,17 +151,21 @@ G_GNUC_END_IGNORE_DEPRECATIONS
             }
           g_list_free (providers);

           /* check if we have at least one item */
           if (G_UNLIKELY (items != NULL))
             {
               /* add menu items for all items */
               for (lp = items; lp != NULL; lp = lp->next)
- thunar_gtk_menu_thunarx_menu_item_new (lp->data, GTK_MENU_SHELL (menu));
+ {
+ item = thunar_gtk_menu_thunarx_menu_item_new (lp->data, GTK_MENU_SHELL (menu));
+ gtk_widget_show(item);
+ gtk_widget_show_all(item);
+ }
               g_list_free (items);

               /* append another separator */
               item = gtk_separator_menu_item_new ();
               gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
               gtk_widget_show (item);
             }
         }

affects: thunar-archive-plugin (Ubuntu) → thunar (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.