Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Attempt to utilize external applications for rar extract support #147

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

SnazzyPanda
Copy link
Contributor

This is likely a slightly better solution for .rar support than #146. The main difference is that this first attempts to utilize the 7z command, which has likely been installed by the user as part of the listed 7-Zip dependency. It will also continue trying the other methods, instead of stopping at the first failure.

This change attempts to extract .rar files in this order:

  1. The 7z command
  2. The unrar command
  3. The original bit7z method.

On my system, the 7z command was able to extract the .rar test files I have without issue, but this support may depend on what version of 7z users install.

This succeeded with a valid .rar file and failed with an invalid .rar
file (a .zip file with its extension changed to .rar)
7z appears to work fine for me, and is more likely to be installed from
the listed requirements.
Only show the in-app failure notification when all available extract
methods fail. This avoids the potential of 3 error notifications for
each rar file that fails to extract.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant