add flatpak unrar

This commit is contained in:
Limo
2024-08-14 04:36:28 +02:00
parent f73fa49fc0
commit 6228a8aa10

View File

@@ -413,6 +413,8 @@ void Installer::extractBrokenRarArchive(const sfs::path& source_path, const sfs:
if(is_a_flatpak_)
UNRAR_PATH = "/app/bin/unrar";
std::string command = "\"" + UNRAR_PATH.string() + "\" x \"" + source_path.string() + "\"";
if(is_a_flatpak_)
command = "flatpak-spawn " + command;
auto pipe =
popen(command.c_str(), "r");
while(!feof(pipe))