Skip to content

Commit

Permalink
Ensured LPM_RUN_FROM_GUI is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Dec 6, 2024
1 parent 1058f5b commit d004e9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2008,8 +2008,10 @@ int main(int argc, char* argv[]) {
#endif
#if _WIN32
lua_pushboolean(L, GetConsoleProcessList(&(DWORD){ 0 }, 1) == 1);
lua_setglobal(L, "LPM_RUN_FROM_GUI");
#else
lua_pushboolean(L, 0);
#endif
lua_setglobal(L, "LPM_RUN_FROM_GUI");
lua_setglobal(L, "TTY");
#if _WIN32
lua_pushliteral(L, "\\");
Expand Down

0 comments on commit d004e9c

Please sign in to comment.