Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Right-click+Drag > Extract Here ignores chosen destination directory

  1. #1
    Join Date
    Jun 2016
    Beans
    1,638
    Distro
    Xubuntu 18.04 Bionic Beaver

    Right-click+Drag > Extract Here ignores chosen destination directory

    1) Open a Thunar window to a directory containing an archive

    2) Open a second Thunar window to the home directory

    3) Right-click+drag the archive into the second Thunar window, and click "Extract here".

    But it extracts in the directory containing the archive, not in the home directory.

    In Xubuntu 16.04, I got it working by installing Ark, and using a custom ark.tap file and a bunch of symlinks -
    Code:
    #!/bin/sh
    #
    # file-roller.tap - Wrapper script to create and extract archive files
    #                   in Thunar, via the thunar-archive-plugin, using the
    #                   KDE ark archive manager.
    #
    # $Id$
    #
    # Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>.
    #
    # This program is free software; you can redistribute it and/or modify it
    # under the terms of the GNU General Public License as published by the Free
    # Software Foundation; either version 2 of the License, or (at your option)
    # any later version.
    #
    # This program is distributed in the hope that it will be useful, but WITHOUT
    # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
    # more details.
    #
    # You should have received a copy of the GNU General Public License along with
    # this program; if not, write to the Free Software Foundation, Inc., 59 Temple
    # Place, Suite 330, Boston, MA  02111-1307  USA.
    #
    
    # determine the action and the folder, $@ then contains only the files
    action=$1; shift;
    folder=$1; shift;
    
    # check the action
    case $action in
    create)
    	exec ark --dialog --add "$@"
    	;;
    
    extract-here)
    	exec ark --destination "$folder" --batch --autosubfolder "$@"
    	;;
    
    extract-to)
    	exec ark --destination "$folder" --batch --dialog "$@"
    	;;
    
    *)
    	echo "Unsupported action '$action'" >&2
    	exit 1
    esac
    But in 18.04, this isn't a solution, because Ark is completely silent (no progress dialog like in Xubuntu 16.04). I have no way to know how far along it is, nor do I have a way to know when it's done without looking at a system monitor.

    So how to get this working with the default Xubuntu archive manager?
    Xubuntu 18.04/MacBookPro9,1 ♦ Debian 9/Mageia 6/Xubuntu 16.04/VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  2. #2
    Join Date
    Jun 2016
    Beans
    1,638
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Bump

    This is still a problem in Xubuntu 18.04 beta 1. Should I file a bug report? If so, against which package?
    Xubuntu 18.04/MacBookPro9,1 ♦ Debian 9/Mageia 6/Xubuntu 16.04/VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  3. #3
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Quote Originally Posted by halogen2 View Post
    Bump

    This is still a problem in Xubuntu 18.04 beta 1. Should I file a bug report? If so, against which package?
    Is this just a XFCE4 install or are there other DE environments?
    I'm not seeing that on mine!
    Last edited by 1fallen; March 12th, 2018 at 11:06 PM.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  4. #4
    Join Date
    Jun 2016
    Beans
    1,638
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Quote Originally Posted by 1fallen View Post
    Is this just a XFCE4 install or are there other DE environments?
    It's a completely fresh install of Xubuntu 18.04 beta 1. I didn't add or remove any software yet.
    Xubuntu 18.04/MacBookPro9,1 ♦ Debian 9/Mageia 6/Xubuntu 16.04/VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  5. #5
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Quote Originally Posted by halogen2 View Post
    It's a completely fresh install of Xubuntu 18.04 beta 1. I didn't add or remove any software yet.
    Huum? have you tried to use just: (terminal)
    Code:
    file-roller
    from there add the compressed folder and extract to your preference?
    might give some clues.
    needed "rar" && "unrar" other packages are needed for some other file-ext (7zip yada yada)
    Did you install a minimal install then?
    Last edited by 1fallen; March 13th, 2018 at 02:57 AM. Reason: added to
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  6. #6
    Join Date
    Jun 2016
    Beans
    1,638
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Maybe I wasn't clear.

    Extracting from within the archive manager works fine (looks like Xubuntu uses Engrampa). The wrong behavior happens when I right-click+drag in Thunar, from one Thunar window to another Thunar window.

    It gives me a menu with options "Copy here", "Move here", "Link here", "Extract here", and "Cancel". No archive manager is even open until I click "Extract Here". And when I do click that, the archive extracts fine, but not in the folder it's supposed to extract to.

    Clear now?


    * Got some more information:

    1) It's reproducible even in the live CD environment. No need to install to reproduce this problem.

    2) When I right-click+drag > Extract Here, Thunar runs this command -
    Code:
    engrampa --extract-to=<correct destination directory> --extract-here --force <archive>
    Running that command manually in Terminal produces the same result. The only terminal output is
    Code:
    Gtk-Message: xx:xx:xx.xxx: GtkDialog mapped without a transient parent. This is discouraged.
    Quote Originally Posted by 1fallen View Post
    Did you install a minimal install then?
    I don't think so. I don't know how to do a minimal install.
    Last edited by halogen2; March 13th, 2018 at 03:58 AM.
    Xubuntu 18.04/MacBookPro9,1 ♦ Debian 9/Mageia 6/Xubuntu 16.04/VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  7. #7
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Yes, engrampa is replacing file-roler for 18.04. Evince -> Atril and Gnome calculator -> Mate calculator are the other 2 replacements we're doing for 18.04
    Quote Originally Posted by halogen2 View Post
    This is still a problem in Xubuntu 18.04 beta 1. Should I file a bug report? If so, against which package?
    File it against engrampa: https://bugs.launchpad.net/ubuntu/+source/engrampa

  8. #8
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Quote Originally Posted by halogen2 View Post
    Maybe I wasn't clear.



    Clear now?
    Crystal My Fault. Sometimes I see only what I want to see!

    Quote Originally Posted by slickymaster View Post
    Yes, engrampa is replacing file-roler for 18.04. Evince -> Atril and Gnome calculator -> Mate calculator are the other 2 replacements we're doing for 18.04
    File it against engrampa: https://bugs.launchpad.net/ubuntu/+source/engrampa
    Understood, >>>that's why I installed file-roller.
    Attached Images Attached Images
    Last edited by 1fallen; March 13th, 2018 at 06:10 PM. Reason: f shot
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  9. #9
    Join Date
    Jun 2016
    Beans
    1,638
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    Quote Originally Posted by slickymaster View Post
    File it against engrampa:
    Done - https://bugs.launchpad.net/ubuntu/+s...a/+bug/1755556

    Thanks slickymaster & 1fallen for your help.
    Xubuntu 18.04/MacBookPro9,1 ♦ Debian 9/Mageia 6/Xubuntu 16.04/VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  10. #10
    Join Date
    Jun 2016
    Beans
    1,638
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Right-click+Drag > Extract Here ignores chosen destination directory

    I found a workaround using xarchiver. The 18.04 version of xarchiver added the option to auto-detect subfolder when extracting. But thunar-archive-plugin doesn't use that option. Easy fix though: edit /usr/lib/thunar-archive-plugin/xarchiver.tap and change this line...
    Code:
    	exec xarchiver "--extract-to=$folder" "$@"
    ... to this -
    Code:
    	exec xarchiver -d "--extract-to=$folder" "$@"
    (The -d option is not documented in the man page. Refer to xarchiver --help for more info.)

    Not quite an ideal solution, because xarchiver's progress bar doesn't show how far along it is, but this is usable.

    Thanks again to all who replied.
    Xubuntu 18.04/MacBookPro9,1 ♦ Debian 9/Mageia 6/Xubuntu 16.04/VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •