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

PREFIX in /usr/bin/opengamepadui can sometimes be empty #424

Open
philmmanjaro opened this issue Jan 2, 2025 · 1 comment
Open

PREFIX in /usr/bin/opengamepadui can sometimes be empty #424

philmmanjaro opened this issue Jan 2, 2025 · 1 comment

Comments

@philmmanjaro
Copy link
Contributor

In some cases the PREFIX value is empty:

SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
PREFIX=$(dirname -- "${SCRIPT_DIR}")

Hardcoding it to /usr solved the issue for me when adding it to a new OS.

@pastaq
Copy link
Collaborator

pastaq commented Jan 2, 2025

ShadowApex is on vacation so you'll likely need to wait for him to get a detailed explanation, but we can't hardcode that to /usr due to the way NixOS handles directories IIRC. It might be okay to add some validation/fallback here though.

This may be related to #423

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

No branches or pull requests

2 participants