mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.28k stars 115 forks source link

Current metafile directory taken for games, even though `directory` or `workdir` is set #858

Open j8r opened 3 years ago

j8r commented 3 years ago

When a metafile is at a given directory, let's take the default one, if a game/file is matching the extension in this very directory, it will be shown in Pegasus. directory and workdir are set, but the issue still occurs.

Here is an example:

cat > pictures.metadata.pegasus.txt <<E
collection: Pictures
extensions: jpg, jpeg, png, webp
launch: mpv --loop-file=inf {file.name}
directory: /tmp
E

Then create a picture in this directory: touch foo.png. It will appears in Pegasus.

mmatyas commented 3 years ago

Actually this is intentional: the metadata files are, in general, intended to be together with the games, so Pegasus will always search the directory of the file. You might also want to handle more than one location, and the directory/directories parameter tells additional search directories other than the current one. This can also be used to place a metadata file somewhere else, eg. in a common metafiles dir, or some special setups, but the searching itself still happens in the directory.

j8r commented 3 years ago

I understand, this is a convenient default. Still, it would be great to have a way to disable this behavior.