More accurate flatpak info parser

This commit is contained in:
Patrick Nicolas
2024-11-07 19:41:35 +01:00
parent 7983745317
commit 8400a03fde
7 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ void display_child_status(int wstatus, const std::string & name)
static std::filesystem::path flatpak_app_path()
{
if (auto value = flatpak_key("app-path"))
if (auto value = flatpak_key(flatpak::section::instance, "app-path"))
{
std::filesystem::path path = *value;
while (path != "" and path != path.parent_path() and path.filename() != "io.github.wivrn.wivrn")