mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed: encapsulate folders for shell commands in quotes for Linux/Mac
This commit is contained in:
parent
e27e3453f9
commit
259a8e0f74
2 changed files with 4 additions and 4 deletions
|
@ -173,14 +173,14 @@ unsigned int I_MakeRNGSeed()
|
|||
|
||||
void I_OpenShellFolder(const char* folder)
|
||||
{
|
||||
std::string x = (std::string)"open " + (std::string)folder;
|
||||
std::string x = (std::string)"open \"" + (std::string)folder + "\"";
|
||||
Printf("Opening folder: %s\n", folder);
|
||||
std::system(x.c_str());
|
||||
}
|
||||
|
||||
void I_OpenShellFile(const char* file)
|
||||
{
|
||||
std::string x = (std::string)"open " + (std::string)file;
|
||||
std::string x = (std::string)"open \"" + (std::string)file + "\"";
|
||||
x.erase(x.find_last_of('/'), std::string::npos);
|
||||
Printf("Opening folder to file: %s\n", file);
|
||||
std::system(x.c_str());
|
||||
|
|
|
@ -434,14 +434,14 @@ unsigned int I_MakeRNGSeed()
|
|||
|
||||
void I_OpenShellFolder(const char* folder)
|
||||
{
|
||||
std::string x = (std::string)"xdg-open " + (std::string)folder;
|
||||
std::string x = (std::string)"xdg-open \"" + (std::string)folder + "\"";
|
||||
Printf("Opening folder: %s\n", folder);
|
||||
std::system(x.c_str());
|
||||
}
|
||||
|
||||
void I_OpenShellFile(const char* file)
|
||||
{
|
||||
std::string x = (std::string)"xdg-open " + (std::string)file;
|
||||
std::string x = (std::string)"xdg-open \"" + (std::string)file + "\"";
|
||||
x.erase(x.find_last_of('/'), std::string::npos);
|
||||
Printf("Opening folder to file: %s\n", file);
|
||||
std::system(x.c_str());
|
||||
|
|
Loading…
Reference in a new issue