pegasus-frontend
pegasus-frontend copied to clipboard
Current metafile directory taken for games, even though `directory` or `workdir` is set
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.
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.
I understand, this is a convenient default. Still, it would be great to have a way to disable this behavior.