Skip to content

Commit f9b5f3f

Browse files
committed
Fix launching renpy games with dot in the name on linux/macos
1 parent fc63885 commit f9b5f3f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
- Improve images error handling and display (#212 by @Willy-JL)
3131
- Tags now sort alphabetically as expected (by @Willy-JL)
3232
- UTF-8 encoding is now forced (#230 by @Willy-JL)
33+
- Fix adding executables focusing the wrong folder if the game type is in only one of the folders (by @Willy-JL)
34+
- Fix marking as executable on Linux/MacOS with RenPy games including a dot in their name (by @Willy-JL)
3335

3436
### Removed:
3537
- Excluded `libEGL.so` on linux binary bundles, fixes "Cannot find EGLConfig, returning null config" (by @Willy-JL)

modules/callbacks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ async def _launch_exe(executable: str):
203203
exe_flag = True
204204
if (exe.parent / "renpy").is_dir():
205205
# Make all needed renpy libs executable
206-
for file in (exe.parent / "lib").glob("**/*"):
207-
if file.is_file() and not file.suffix:
206+
for file in (exe.parent / "lib").glob("py?-*/**/*"):
207+
if file.is_file():
208208
mode = file.stat().st_mode
209209
if mode & stat.S_IEXEC < stat.S_IEXEC:
210210
file.chmod(mode | stat.S_IEXEC)

0 commit comments

Comments
 (0)