Skip to content

Commit c60eef6

Browse files
committed
Fix scriptPath so Timeless Jewel finder works
1 parent e56fa49 commit c60eef6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

main.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,12 +1268,7 @@ static int l_GetTime(lua_State* L)
12681268

12691269
static int l_GetScriptPath(lua_State* L)
12701270
{
1271-
if ((homedir = getenv("HOME")) == NULL) {
1272-
homedir = getpwuid(getuid())->pw_dir;
1273-
}
1274-
1275-
1276-
lua_pushstring(L, homedir);
1271+
lua_pushstring(L, pobwindow->scriptPath.toStdString().c_str());
12771272
return 1;
12781273
}
12791274

0 commit comments

Comments
 (0)