flatpak-coredumpctl: Check for /app as well as /newroot

This fixes a bug where the warning about not being a flatpaked
application was being printed for flatpaks. This was due to a
change in bwrap so that the paths no longer start with /newroot.
This commit is contained in:
Mia McMahill
2026-04-30 10:24:36 -05:00
committed by Sebastian Wick
parent 9a813ffba0
commit af453ce99d

View File

@@ -47,7 +47,7 @@ class CoreDumper():
with open(stderr.name, 'r') as stderrf:
stderr = stderrf.read()
executable, = re.findall(".*Executable: (.*)", stderr)
if not executable.startswith("/newroot"):
if not executable.startswith("/newroot/") and not executable.startswith("/app/"):
print("Executable %s doesn't seem to be a flatpaked application." % executable,
file=sys.stderr)
executable = executable.replace("/newroot", "")