{"action":"created","comment":{"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/comments/72485897","id":72485897,"diff_hunk":"@@ -191,13 +192,22 @@ def __initialize_sgtk(sgtk, app_bootstrap):\n         dm = sgtk.util.CoreDefaultsManager()\n         sg_auth = shotgun_authentication.ShotgunAuthenticator(dm)\n \n-        # get the current user\n-        user = sg_auth.get_default_user()\n-        logger.info(\"Setting current user: %r\" % user)\n-        sgtk.set_authenticated_user(user)\n+        # get the current user for the pipeline.\n+        core_user = sg_auth.get_default_user()\n+\n+        # If there is a user and it's a script user, use that\n+        if core_user and not core_user.login:","path":"python/shotgun_desktop/startup.py","position":27,"original_position":27,"commit_id":"a31d1962083c73f070c46589ccf0f318176786fd","original_commit_id":"a31d1962083c73f070c46589ccf0f318176786fd","user":{"login":"jfboismenu","id":8126447,"avatar_url":"https://avatars.githubusercontent.com/u/8126447?v=3","gravatar_id":"","url":"https://api.github.com/users/jfboismenu","html_url":"https://github.com/jfboismenu","followers_url":"https://api.github.com/users/jfboismenu/followers","following_url":"https://api.github.com/users/jfboismenu/following{/other_user}","gists_url":"https://api.github.com/users/jfboismenu/gists{/gist_id}","starred_url":"https://api.github.com/users/jfboismenu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfboismenu/subscriptions","organizations_url":"https://api.github.com/users/jfboismenu/orgs","repos_url":"https://api.github.com/users/jfboismenu/repos","events_url":"https://api.github.com/users/jfboismenu/events{/privacy}","received_events_url":"https://api.github.com/users/jfboismenu/received_events","type":"User","site_admin":false},"body":"the `if` does test for the user being a script user.","created_at":"2016-07-27T17:37:39Z","updated_at":"2016-07-27T17:37:39Z","html_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup/pull/29#discussion_r72485897","pull_request_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/comments/72485897"},"html":{"href":"https://github.com/shotgunsoftware/tk-framework-desktopstartup/pull/29#discussion_r72485897"},"pull_request":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29","id":78863825,"html_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup/pull/29","diff_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup/pull/29.diff","patch_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup/pull/29.patch","issue_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/29","number":29,"state":"open","locked":false,"title":"For #36439, 0.18 compatible session cache","user":{"login":"jfboismenu","id":8126447,"avatar_url":"https://avatars.githubusercontent.com/u/8126447?v=3","gravatar_id":"","url":"https://api.github.com/users/jfboismenu","html_url":"https://github.com/jfboismenu","followers_url":"https://api.github.com/users/jfboismenu/followers","following_url":"https://api.github.com/users/jfboismenu/following{/other_user}","gists_url":"https://api.github.com/users/jfboismenu/gists{/gist_id}","starred_url":"https://api.github.com/users/jfboismenu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfboismenu/subscriptions","organizations_url":"https://api.github.com/users/jfboismenu/orgs","repos_url":"https://api.github.com/users/jfboismenu/repos","events_url":"https://api.github.com/users/jfboismenu/events{/privacy}","received_events_url":"https://api.github.com/users/jfboismenu/received_events","type":"User","site_admin":false},"body":"Makes the session cache from the desktop compatible with the 0.18 one.","created_at":"2016-07-26T14:40:21Z","updated_at":"2016-07-27T17:37:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a551f57dbc24bb479ab6dd33c272f95aeed19381","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29/commits","review_comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29/comments","review_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/29/comments","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/statuses/a31d1962083c73f070c46589ccf0f318176786fd","head":{"label":"shotgunsoftware:36439_018_compatible_session_cache","ref":"36439_018_compatible_session_cache","sha":"a31d1962083c73f070c46589ccf0f318176786fd","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":35676427,"name":"tk-framework-desktopstartup","full_name":"shotgunsoftware/tk-framework-desktopstartup","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup","description":"Startup logic for the desktop","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup","forks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/deployments","created_at":"2015-05-15T13:47:30Z","updated_at":"2016-01-26T00:43:22Z","pushed_at":"2016-07-27T09:41:37Z","git_url":"git://github.com/shotgunsoftware/tk-framework-desktopstartup.git","ssh_url":"git@github.com:shotgunsoftware/tk-framework-desktopstartup.git","clone_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup.git","svn_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup","homepage":"","size":10607,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"shotgunsoftware:master","ref":"master","sha":"e49476bca668bfe2019120fcb499f8e5989600d3","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":35676427,"name":"tk-framework-desktopstartup","full_name":"shotgunsoftware/tk-framework-desktopstartup","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup","description":"Startup logic for the desktop","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup","forks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/deployments","created_at":"2015-05-15T13:47:30Z","updated_at":"2016-01-26T00:43:22Z","pushed_at":"2016-07-27T09:41:37Z","git_url":"git://github.com/shotgunsoftware/tk-framework-desktopstartup.git","ssh_url":"git@github.com:shotgunsoftware/tk-framework-desktopstartup.git","clone_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup.git","svn_url":"https://github.com/shotgunsoftware/tk-framework-desktopstartup","homepage":"","size":10607,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29"},"html":{"href":"https://github.com/shotgunsoftware/tk-framework-desktopstartup/pull/29"},"issue":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/29"},"comments":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-desktopstartup/statuses/a31d1962083c73f070c46589ccf0f318176786fd"}}}}
{"actor":{"display_login":"jfboismenu"}}