You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently developing a WSL plugin that needs to validate the operating system of the distribution during the onDistributionStarted event. If the OS is not authorized, the plugin should:
Display a message to the user: "You are not authorized to use this distribution".
Return an error during the onDistributionStarted event to prevent further execution.
I’m reaching out to seek your guidance on how best to achieve this functionality. Specifically, I’d like to know:
How to display the message to the user in the console and return an error from this event?
Any advice, examples, or resources you can share would be greatly appreciated. Thank you for your time and expertise!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently developing a WSL plugin that needs to validate the operating system of the distribution during the onDistributionStarted event. If the OS is not authorized, the plugin should:
onDistributionStarted
event to prevent further execution.I’m reaching out to seek your guidance on how best to achieve this functionality. Specifically, I’d like to know:
Any advice, examples, or resources you can share would be greatly appreciated. Thank you for your time and expertise!
Beta Was this translation helpful? Give feedback.
All reactions