{"action":"created","issue":{"url":"https://api.github.com/repos/stevieb9/berrybrew/issues/39","repository_url":"https://api.github.com/repos/stevieb9/berrybrew","labels_url":"https://api.github.com/repos/stevieb9/berrybrew/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/stevieb9/berrybrew/issues/39/comments","events_url":"https://api.github.com/repos/stevieb9/berrybrew/issues/39/events","html_url":"https://github.com/stevieb9/berrybrew/issues/39","id":166126466,"number":39,"title":"Crash trying to use config","user":{"login":"cmfrolick","id":20228854,"avatar_url":"https://avatars.githubusercontent.com/u/20228854?v=3","gravatar_id":"","url":"https://api.github.com/users/cmfrolick","html_url":"https://github.com/cmfrolick","followers_url":"https://api.github.com/users/cmfrolick/followers","following_url":"https://api.github.com/users/cmfrolick/following{/other_user}","gists_url":"https://api.github.com/users/cmfrolick/gists{/gist_id}","starred_url":"https://api.github.com/users/cmfrolick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmfrolick/subscriptions","organizations_url":"https://api.github.com/users/cmfrolick/orgs","repos_url":"https://api.github.com/users/cmfrolick/repos","events_url":"https://api.github.com/users/cmfrolick/events{/privacy}","received_events_url":"https://api.github.com/users/cmfrolick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-18T15:48:32Z","updated_at":"2016-07-18T16:28:58Z","closed_at":null,"body":"I get an error trying to call config from a non-admin command prompt. Since manipulating the path probably requires elevated privileges, it probably should always check and warn if not run with correct privileges.\r\n\r\nC:\\berrybrew\\bin>berrybrew.exe config\r\n\r\nThis is berrybrew, version\r\n1.04\r\n\r\n\r\nWould you like to add berrybrew to your user PATH? y/n [n]\r\n\r\ny\r\n\r\nUnhandled Exception: System.UnauthorizedAccessException: Access to the registry key 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' is denied.\r\n   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)\r\n   at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions)\r\n   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck)\r\n   at BerryBrew.Berrybrew.PathSet(List`1 path)\r\n   at BerryBrew.Berrybrew.Config()\r\n   at BBConsole.bbconsole.Main(String[] args)"},"comment":{"url":"https://api.github.com/repos/stevieb9/berrybrew/issues/comments/233381854","html_url":"https://github.com/stevieb9/berrybrew/issues/39#issuecomment-233381854","issue_url":"https://api.github.com/repos/stevieb9/berrybrew/issues/39","id":233381854,"user":{"login":"stevieb9","id":13042239,"avatar_url":"https://avatars.githubusercontent.com/u/13042239?v=3","gravatar_id":"","url":"https://api.github.com/users/stevieb9","html_url":"https://github.com/stevieb9","followers_url":"https://api.github.com/users/stevieb9/followers","following_url":"https://api.github.com/users/stevieb9/following{/other_user}","gists_url":"https://api.github.com/users/stevieb9/gists{/gist_id}","starred_url":"https://api.github.com/users/stevieb9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevieb9/subscriptions","organizations_url":"https://api.github.com/users/stevieb9/orgs","repos_url":"https://api.github.com/users/stevieb9/repos","events_url":"https://api.github.com/users/stevieb9/events{/privacy}","received_events_url":"https://api.github.com/users/stevieb9/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T16:28:58Z","updated_at":"2016-07-18T16:28:58Z","body":"Unfortunately, at this time, berrybrew requires administrative privileges.\n\nLater today I will be working on correcting this deficiency, by putting\neverything in the User PATH target.\n\nHowever, if a system perl (Strawberry Perl or ActiveState) has been\ninstalled, without admin privileges, berrybrew won't work as Machine\n(System) PATH takes precedence over User PATH (thanks, Windows!).\n\nI'll also be adding much better exception handling.\n\nSteve\n\nOn Mon, Jul 18, 2016 at 9:48 AM, cmfrolick <notifications@github.com> wrote:\n\n> I get an error trying to call config from a non-admin command prompt.\n> Since manipulating the path probably requires elevated privileges, it\n> probably should always check and warn if not run with correct privileges.\n>\n> C:\\berrybrew\\bin>berrybrew.exe config\n>\n> This is berrybrew, version\n> 1.04\n>\n> Would you like to add berrybrew to your user PATH? y/n [n]\n>\n> y\n>\n> Unhandled Exception: System.UnauthorizedAccessException: Access to the\n> registry key 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\n> Manager\\Environment' is denied.\n> at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)\n> at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey,\n> RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj,\n> RegistryOptions registryOptions)\n> at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey,\n> RegistryKeyPermissionCheck permissionCheck)\n> at BerryBrew.Berrybrew.PathSet(List`1 path)\n> at BerryBrew.Berrybrew.Config()\n> at BBConsole.bbconsole.Main(String[] args)\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/stevieb9/berrybrew/issues/39>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AMcCP0R9HSaN9_og1CIf_cTRlYd_NdXCks5qW6BQgaJpZM4JO2sH>\n> .\n>\n"}}
{"actor":{"display_login":"stevieb9"}}