Fix of previous commit

This commit is contained in:
Vojtech Bubnik 2021-01-11 11:29:27 +01:00
parent 7780221683
commit a900b7767b

View File

@ -262,7 +262,7 @@ bool instance_check(int argc, char** argv, bool app_config_single_instance)
// see https://docs.appimage.org/packaging-guide/environment-variables.html#id2 // see https://docs.appimage.org/packaging-guide/environment-variables.html#id2
const char *appimage_binary = std::getenv("APPIMAGE"); const char *appimage_binary = std::getenv("APPIMAGE");
if (appimage_binary) if (appimage_binary)
hashed_path = std::hash<std::string>{}(boost::filesystem::canonical(boost::filesystem::system_complete(appimage_binary, ec).string()); hashed_path = std::hash<std::string>{}(boost::filesystem::canonical(boost::filesystem::system_complete(appimage_binary, ec).string()));
if (ec.value() > 0) if (ec.value() > 0)
#endif // __linux #endif // __linux
hashed_path = std::hash<std::string>{}(boost::filesystem::canonical(boost::filesystem::system_complete(argv[0]), ec).string()); hashed_path = std::hash<std::string>{}(boost::filesystem::canonical(boost::filesystem::system_complete(argv[0]), ec).string());