I am using Ubuntu 22.04.
cat /proc/sys/kernel/core_pattern|/lib/systemd/systemd-coredump %P %u %g %s %t 9223372036854775808 %h
As far as I understand I am using systemd-coredump to generate coredump files when my C++ program crashes. However the coredump files are stored here /var/lib/systemd/coredump
I would like to change the coredump storing location to be at the same place where the executable is.
This thing drives me crazy, I red alot over stackoverflow but all info looks to be for older versions of Ubuntu not for 22.04.
Is there anyway I can achieve that?
P.S.I have uninstalled apport by running sudo apt-get remove apport