Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/system_tray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ namespace system_tray {
// this isn't ideal as it briefly shows a command window
// but start a command built into cmd, not an executable
std::string cmd = R"(cmd /C "start )" + url + R"(")";
#else // if unix
#elif defined(__linux__) || defined(linux) || defined(__linux)
// set working dir to user home directory
working_dir = boost::filesystem::path(std::getenv("HOME"));
std::string cmd = R"(xdg-open ")" + url + R"(")";
#elif defined(__APPLE__) || defined(__MACH__)
std::string cmd = R"(open ")" + url + R"(")";
#endif
Comment thread
KuleRucket marked this conversation as resolved.

Expand Down