clang-format

This commit is contained in:
Vaxry 2024-04-28 22:04:38 +01:00
parent 35cb7f4c3b
commit 80cff19117
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ struct SInstanceData {
std::vector<SInstanceData> instances() {
std::vector<SInstanceData> result;
const std::string USERID = std::to_string(getpwuid(getuid())->pw_uid);
const std::string USERID = std::to_string(getpwuid(getuid())->pw_uid);
for (const auto& el : std::filesystem::directory_iterator("/run/user/" + USERID + "/hypr")) {
if (!el.is_directory() || !std::filesystem::exists(el.path().string() + "/hyprland.lock"))
@ -166,7 +166,7 @@ void requestHyprpaper(std::string arg) {
const std::string USERID = std::to_string(getpwuid(getuid())->pw_uid);
std::string socketPath = "/run/user/" + USERID + "/hypr/" + instanceSignature + "/.hyprpaper.sock";
std::string socketPath = "/run/user/" + USERID + "/hypr/" + instanceSignature + "/.hyprpaper.sock";
strncpy(serverAddress.sun_path, socketPath.c_str(), sizeof(serverAddress.sun_path) - 1);