mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
format: make ci happy
This commit is contained in:
@@ -649,8 +649,8 @@ int64_t getPPIDof(int64_t pid) {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
std::string dir = "/proc/" + std::to_string(pid) + "/status";
|
std::string dir = "/proc/" + std::to_string(pid) + "/status";
|
||||||
FILE* infile;
|
FILE* infile;
|
||||||
|
|
||||||
infile = fopen(dir.c_str(), "r");
|
infile = fopen(dir.c_str(), "r");
|
||||||
if (!infile)
|
if (!infile)
|
||||||
|
@@ -296,7 +296,7 @@ APICALL std::vector<SFunctionMatch> HyprlandAPI::findFunctionsByName(HANDLE hand
|
|||||||
const auto FPATH = std::filesystem::canonical(exe);
|
const auto FPATH = std::filesystem::canonical(exe);
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
// Neither KERN_PROC_PATHNAME nor /proc are supported
|
// Neither KERN_PROC_PATHNAME nor /proc are supported
|
||||||
const auto FPATH = std::filesystem::canonical("/usr/local/bin/Hyprland");
|
const auto FPATH = std::filesystem::canonical("/usr/local/bin/Hyprland");
|
||||||
#else
|
#else
|
||||||
const auto FPATH = std::filesystem::canonical("/proc/self/exe");
|
const auto FPATH = std::filesystem::canonical("/proc/self/exe");
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user