I used this function in my extension, and now I want to do something similar in my react plugin. Is there anyway to get the username of the mac/win user or if it’s easier to extract the Adobe username from Photoshop? Thanks
function getUserName() {
return (isMacOS()) ? $.getenv(“USER”) : $.getenv(“USERNAME”);
}