From 6228a8aa100014df4e0c9bfdfce8fd07f505fcd6 Mon Sep 17 00:00:00 2001 From: Limo Date: Wed, 14 Aug 2024 04:36:28 +0200 Subject: [PATCH] add flatpak unrar --- src/core/installer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/installer.cpp b/src/core/installer.cpp index 3d8dfd9..6e1c518 100644 --- a/src/core/installer.cpp +++ b/src/core/installer.cpp @@ -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))