Now we edit the file file-roller.tap (which is where the command for thunar-archive-plugin is stored) to remove the --extract-to option. The command will still work because the --extract-here option remains:
# sudo sed 's/"--extract-to=$(pwd)" //' /usr/lib/x86_64-linux-gnu/thunar-archive-plugin/file-roller.tap | sudo tee /usr/lib/x86_64-linux-gnu/thunar-archive-plugin/file-roller.temp > /dev/null; sudo mv /usr/lib/x86_64-linux-gnu/thunar-archive-plugin/file-roller.temp /usr/lib/x86_64-linux-gnu/thunar-archive-plugin/file-roller.tap; sudo chmod a+x /usr/lib/x86_64-linux-gnu/thunar-archive-plugin/file-roller.tap
And here's a manual fix for Thunar users:
Optionally, first make a backup of the file we're about to edit:
# sudo cp /usr/lib/ x86_64- linux-gnu/ thunar- archive- plugin/ file-roller. tap /usr/lib/ x86_64- linux-gnu/ thunar- archive- plugin/ file-roller. backup
Now we edit the file file-roller.tap (which is where the command for thunar- archive- plugin is stored) to remove the --extract-to option. The command will still work because the --extract-here option remains:
# sudo sed 's/"--extract- to=$(pwd) " //' /usr/lib/ x86_64- linux-gnu/ thunar- archive- plugin/ file-roller. tap | sudo tee /usr/lib/ x86_64- linux-gnu/ thunar- archive- plugin/ file-roller. temp > /dev/null; sudo mv /usr/lib/ x86_64- linux-gnu/ thunar- archive- plugin/ file-roller. temp /usr/lib/ x86_64- linux-gnu/ thunar- archive- plugin/ file-roller. tap; sudo chmod a+x /usr/lib/ x86_64- linux-gnu/ thunar- archive- plugin/ file-roller. tap