mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Fix of previous commit
This commit is contained in:
parent
7780221683
commit
a900b7767b
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue