libretro / libretro/RetroArch

Relative paths not working in a playlist on linux

Open
#17,024 12 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Description

Relative paths not working in a playlist on linux, only absolute paths.

Expected behavior

Launch a game from a playlist with relative path.

Actual behavior

The game is not launched.

Steps to reproduce the bug
  1. Edit a playlist created previously with RetroArch interface than works well.
  2. Replace absolute path like "/home/karl/.config/retroarch/roms/fbneo/1941.zip" with relative path like ":/roms/fbneo/1941.zip".
  3. When try to launch the game from playlist, it not load
Bisect Results

I detected this when I was trying to prepare some playlist for my SteamDeck from my desktop installation.
I tried other relative path options like ":/cores/../roms/fbneo/1941.zip", "roms/fbneo/1941.zip" or "~/.config/retroarch/roms/fbneo/1941.zip", but no one work.

Relative paths works perfect for core line: "core_path": ":/cores/fbneo_libretro.so".

Version/Commit

1.19.1

Environment information
  • OS: ArchLinux
  • Compiler: Using official version in Arch Extra repository

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Linux using a playlist entry with the relative ROM paths shown in the report, comparing it with the working relative core path. Trace the playlist launch and path-resolution entry points to determine why the ROM path is not resolved; done means the listed relative ROM forms launch successfully without breaking absolute paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.