pegasus-frontend icon indicating copy to clipboard operation
pegasus-frontend copied to clipboard

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

Open j8r opened this issue 3 years ago • 2 comments

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.

j8r avatar Jun 19 '21 18:06 j8r

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.

mmatyas avatar Jun 20 '21 20:06 mmatyas

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

j8r avatar Jun 20 '21 21:06 j8r