diff options
author | FearlessTobi <thm.frey@gmail.com> | 2019-09-05 03:40:49 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2019-09-05 03:40:49 +0200 |
commit | 1aec2ff4d24432a9083996b3549d2cb81c86cc7a (patch) | |
tree | 3d2600a7bb877ee70fedb1ad18798ef1078c8caf | |
parent | Guard unistd.h with MacOS only macro (diff) | |
download | yuzu-1aec2ff4d24432a9083996b3549d2cb81c86cc7a.tar yuzu-1aec2ff4d24432a9083996b3549d2cb81c86cc7a.tar.gz yuzu-1aec2ff4d24432a9083996b3549d2cb81c86cc7a.tar.bz2 yuzu-1aec2ff4d24432a9083996b3549d2cb81c86cc7a.tar.lz yuzu-1aec2ff4d24432a9083996b3549d2cb81c86cc7a.tar.xz yuzu-1aec2ff4d24432a9083996b3549d2cb81c86cc7a.tar.zst yuzu-1aec2ff4d24432a9083996b3549d2cb81c86cc7a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index e871fef7b..4d61ad46f 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2172,7 +2172,10 @@ int main(int argc, char* argv[]) { QCoreApplication::setApplicationName(QStringLiteral("yuzu")); #ifdef __APPLE__ - std::string bin_path = FileUtil::GetBundleDirectory() + DIR_SEP + ".."; + // If you start a bundle (binary) on OSX without the Terminal, the working directory is "/". + // But since we require the working directory to be the executable path for the location of the + // user folder in the Qt Frontend, we need to cd into that working directory + const std::string bin_path = FileUtil::GetBundleDirectory() + DIR_SEP + ".."; chdir(bin_path.c_str()); #endif |