Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make other executable extension selectable in game-details filepicker #634

Closed
wants to merge 2 commits into from

Conversation

katsu-chan
Copy link

Executables with extensions different from .exe currently aren't selectable in the file-picker. This PR adds following extensions to file-picker filter: bat, sh and bash.

@@ -141,7 +141,7 @@ export function GameDetailsContextProvider({
filters: [
{
name: "Game executable",
extensions: ["exe"],
extensions: ["exe", "bash", "sh", "bat"], //TODO: check if empty extension can be added, so it's possible to select linux binaries without extinsion. Add if can be added.
Copy link
Contributor

@scrlkx scrlkx Jun 23, 2024

Choose a reason for hiding this comment

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

AFAIK empty is not a valid option but we could have something like this.

{ name: 'All Files', extensions: ['*'] }

Copy link
Author

Choose a reason for hiding this comment

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

It would be so wonderful if it was possible to filter files by their execution permissions. I think this solution is good enough though

@zamitto
Copy link
Collaborator

zamitto commented Jun 27, 2024

There is one big problem in selecting other files. Hydra won't be able to get the executable name to observe its process and count the playtime

@katsu-chan
Copy link
Author

Would explicitly forbidding running games as background jobs in the documentation be a good solution?
Also, windows executables should be able to do something like linux bg jobs.
Launchers, for example, frequently give user an option to close themselves for performance boost when a game starts

@zamitto zamitto closed this Sep 10, 2024
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.

3 participants