Skip to content

Fix Epic working directory issue with launching games#495

Merged
utkarshdalal merged 2 commits intoutkarshdalal:masterfrom
phobos665:fix/use-working-dir-epic
Feb 5, 2026
Merged

Fix Epic working directory issue with launching games#495
utkarshdalal merged 2 commits intoutkarshdalal:masterfrom
phobos665:fix/use-working-dir-epic

Conversation

@phobos665
Copy link
Contributor

@phobos665 phobos665 commented Feb 5, 2026

Summary by cubic

Fixes Epic games failing to launch by setting the working directory to the executable’s folder. This ensures titles that depend on their local working dir start correctly when using Wine.

Written for commit 93e23a6. Summary will update on new commits.

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Improved Epic Games launch compatibility by ensuring proper working directory configuration for game executables.

@coderabbitai
Copy link

coderabbitai bot commented Feb 5, 2026

📝 Walkthrough

Walkthrough

The PR adds logic to XServerScreen.kt to set the working directory for Epic game executables. When launching a game from Epic, the code now computes the executable's parent directory and assigns it to guestProgramLauncherComponent.workingDir to ensure proper file resolution during execution.

Changes

Cohort / File(s) Summary
Epic Working Directory Setup
app/src/main/java/app/gamenative/ui/screen/xserver/XServerScreen.kt
Added logic to compute and assign the working directory for Epic game executables, deriving it from the executable's containing directory.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • set and use workingdir for bionic containers! #203: Implements the workingDir accessor and launcher behavior that enables processes to execute in the configured working directory, directly utilized by this PR's working directory assignment for Epic games.

Poem

🐰 A path is set, a dir assigned,
For Epic games to launch aligned,
Where executables find their way,
The working dir saves the day! 🎮✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix Epic working directory issue with launching games' directly describes the main change: resolving a working directory problem for Epic game launches by setting the proper directory for executable execution.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@utkarshdalal utkarshdalal merged commit a1f3fd3 into utkarshdalal:master Feb 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants