CHollingworth / Lampray

Linux Application Modding Platform. A native Linux mod manager.
https://www.nexusmods.com/baldursgate3/mods/2169
The Unlicense
174 stars 16 forks source link

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

Open SnazzyPanda opened 3 months ago

SnazzyPanda commented 3 months ago

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.