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

portable.ini doesn't accept environment variables #315

Closed
Memphizzz opened this issue Sep 10, 2018 · 5 comments
Closed

portable.ini doesn't accept environment variables #315

Memphizzz opened this issue Sep 10, 2018 · 5 comments

Comments

@Memphizzz
Copy link

Hi,

I got a portable.ini which has the following line:

portable_dir = C:\Users<user>\keypirinha

I tried to use ${var:KNOWNFOLDER_PROFILE}\keypirinha and %USERPROFILE%\keypirinha but nothing works. Could you add support for environment variables in the portable.ini?

Thanks in advance and keep up the great work!

@polyvertex
Copy link
Member

So sorry for that, it was supposed to be implemented already. It will be there in next release.

Note that portable.ini is loaded quite early in the init process so only the conventional notation will be supported (e.g. %USERPROFILE%). This will be documented.

@Memphizzz
Copy link
Author

I see, well thanks for the quick response! I'm looking forward to that feature ;)

@polyvertex
Copy link
Member

Reopening until next release is out

@polyvertex polyvertex reopened this Sep 11, 2018
@polyvertex
Copy link
Member

Support for env vars in portable.ini added in v2.19

@Memphizzz
Copy link
Author

Just reporting back, works fine now using:

portable_dir = %USERPROFILE%\keypirinha\

Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants