forked from quickshell/quickshell
crash: add crash reporter
This commit is contained in:
parent
5040f3796c
commit
fe1d15e8f6
23 changed files with 1118 additions and 315 deletions
26
src/core/crashinfo.hpp
Normal file
26
src/core/crashinfo.hpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include <qdatetime.h>
|
||||
#include <qstring.h>
|
||||
|
||||
struct InstanceInfo {
|
||||
QString configPath;
|
||||
QString shellId;
|
||||
QString initialWorkdir;
|
||||
QDateTime launchTime;
|
||||
bool noColor = false;
|
||||
bool sparseLogsOnly = false;
|
||||
};
|
||||
|
||||
QDataStream& operator<<(QDataStream& stream, const InstanceInfo& info);
|
||||
QDataStream& operator>>(QDataStream& stream, InstanceInfo& info);
|
||||
|
||||
namespace qs::crash {
|
||||
|
||||
struct CrashInfo {
|
||||
int logFd = -1;
|
||||
|
||||
static CrashInfo INSTANCE; // NOLINT
|
||||
};
|
||||
|
||||
} // namespace qs::crash
|
Loading…
Add table
Add a link
Reference in a new issue