mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-24 15:25:59 +01:00
use .txt for crash reports
This commit is contained in:
parent
50a4a74b4e
commit
0905515c40
2 changed files with 28 additions and 29 deletions
|
@ -59,7 +59,7 @@ coredumpctl info [PID]
|
|||
where `[PID]` is the PID you remembered.
|
||||
|
||||
## Obtaining the Hyprland Crash Report (v0.22.0beta and up)
|
||||
Go to `~/.hyprland/` and you should find a file named `.hyprlandCrashReport[XXXX]` where `[XXXX]` is the PID of the process that crashed.
|
||||
Go to `~/.hyprland/` and you should find a file named `hyprlandCrashReport[XXXX].txt` where `[XXXX]` is the PID of the process that crashed.
|
||||
|
||||
If you do not see it, make sure you have "show hidden files" enabled in your file manager.
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
|
||||
std::string getRandomMessage() {
|
||||
|
||||
const std::vector<std::string> MESSAGES = {"Sorry, didn't mean to...",
|
||||
|
@ -132,7 +131,7 @@ void CrashReporter::createAndSaveCrash() {
|
|||
std::filesystem::permissions(std::string(HOME) + "/.hyprland", std::filesystem::perms::all, std::filesystem::perm_options::replace);
|
||||
}
|
||||
|
||||
std::ofstream ofs(std::string(HOME) + "/.hyprland/.hyprlandCrashReport" + std::to_string(PID), std::ios::trunc);
|
||||
std::ofstream ofs(std::string(HOME) + "/.hyprland/hyprlandCrashReport" + std::to_string(PID) + ".txt", std::ios::trunc);
|
||||
|
||||
ofs << finalCrashReport;
|
||||
|
||||
|
|
Loading…
Reference in a new issue