mirror of
https://github.com/flatpak/flatpak.git
synced 2026-06-02 05:15:36 -04:00
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:
committed by
Sebastian Wick
parent
9a813ffba0
commit
af453ce99d
@@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user