Skip to content

Commit

Permalink
allow multiple instances of ueberzug to run at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
jstkdng committed Mar 11, 2023
1 parent f70be0c commit 48de14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ auto util::get_log_filename() -> std::string

auto util::get_socket_path() -> std::string
{
return fmt::format("{}/ueberzug_{}.sock", fs::temp_directory_path().string(), os::getenv("USER").value());
return fmt::format("{}/ueberzug_{}_{}.sock", fs::temp_directory_path().string(), os::getenv("USER").value(), os::get_pid());
}

void util::send_tcp_message(std::string_view msg)
Expand Down

0 comments on commit 48de14e

Please sign in to comment.