Common/FileUtil: Fix GetExePath() cutting off the bundle name
This commit is contained in:
parent
19f4772e47
commit
3e3f6922c0
|
@ -686,7 +686,8 @@ std::string GetExePath()
|
||||||
dolphin_path = TStrToUTF8(dolphin_exe_path);
|
dolphin_path = TStrToUTF8(dolphin_exe_path);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
dolphin_path = GetBundleDirectory();
|
dolphin_path = GetBundleDirectory();
|
||||||
dolphin_path = dolphin_path.substr(0, dolphin_path.find_last_of("Dolphin.app/Contents/MacOS"));
|
dolphin_path =
|
||||||
|
dolphin_path.substr(0, dolphin_path.find_last_of("Dolphin.app/Contents/MacOS") + 1);
|
||||||
#else
|
#else
|
||||||
char dolphin_exe_path[PATH_MAX];
|
char dolphin_exe_path[PATH_MAX];
|
||||||
ssize_t len = ::readlink("/proc/self/exe", dolphin_exe_path, sizeof(dolphin_exe_path));
|
ssize_t len = ::readlink("/proc/self/exe", dolphin_exe_path, sizeof(dolphin_exe_path));
|
||||||
|
|
Loading…
Reference in New Issue