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

User home dir shortcuts don't work #120

Open
ghostravenstorm opened this issue Feb 28, 2022 · 0 comments
Open

User home dir shortcuts don't work #120

ghostravenstorm opened this issue Feb 28, 2022 · 0 comments

Comments

@ghostravenstorm
Copy link

ghostravenstorm commented Feb 28, 2022

Shortcuts to the user's home dir like %userprofile% on Windows and ~/ on Linux don't work as expected when summoning the open file panel.

var paths = SFB.StandaloneFileBrowser.OpenFilePanel("Open File", "%userprofile%", extensions, false);

Using %userprofile% for example opens the panel on the same executing dir with .../UnityApp/%userprofile%/ in the file name field.
image
Using C:/Users/user instead corrects this behaviour to open on the user's home dir be default as desired, but its silly to hardcode user names.

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

1 participant