Can not open VS for mac after opening it with sudo

WennderSantosWennderSantos BRMember ✭✭
edited February 2018 in Visual Studio

Hi!
I opened my vs for mac with sudo "sudo /Applications/Visual\ Studio.app/Contents/MacOS/VisualStudio" after that, I can't open it without sudo. How can I "revert" this?

Best Answer

  • WennderSantosWennderSantos BR ✭✭
    Accepted Answer

    Solved by removing the root privileges from ~/.templateengine/Visual Studio

    It seems that when I opened vs for mac with sudo, ~/.templateengine/Visual Studio started to require root privileges.

    This post helped me to solve developercommunity.visualstudio.com/content/problem/57634/can-only-launch-visual-studio-from-command-line-wi.html

Answers

  • WennderSantosWennderSantos BRMember ✭✭
    Accepted Answer

    Solved by removing the root privileges from ~/.templateengine/Visual Studio

    It seems that when I opened vs for mac with sudo, ~/.templateengine/Visual Studio started to require root privileges.

    This post helped me to solve developercommunity.visualstudio.com/content/problem/57634/can-only-launch-visual-studio-from-command-line-wi.html

  • @WennderSantos
    We also have to change the permissions of ~/.mono/registry/CurrentUser/software/microsoft/visualstudio/telemetry/persistentpropertybag/visualstudio/values.xml
    It works like a charm.
    Thank you

Sign In or Register to comment.