-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Enable elevation on non-Windows platforms #138
Conversation
@@ -352,6 +350,7 @@ def wrapper_elevate( | |||
f"{func.__name__}(" | |||
f"*{args!r}," | |||
f"base_prefix={base_prefix!r}," | |||
f"_mode='system'," |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrclary - this was the bug 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... when .noadmin
is absent and user_is_admin()
is False. So when a non-admin user runs menuinst
from the commandline? When constructor
runs for all users, user_is_admin()
should return True, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I meant in addition to the early return fix you pointed out in the comment.
As you mention, this fixes CLI driven installs, like conda
or menuinst
. Your report also led me to adding conda/constructor@3f0b97b.
Description
Closes #137
Checklist - did you ...
news
directory (using the template) for the next release's release notes?