{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/2574","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/2574/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/2574/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/2574/events","html_url":"https://github.com/cocos2d/cocos2d-html5/issues/2574","id":53718425,"number":2574,"title":"WebGL does not work on Xubuntu 14.04, and possibly all other Linux OS's with X11.","user":{"login":"ddalcu","id":869085,"avatar_url":"https://avatars.githubusercontent.com/u/869085?v=3","gravatar_id":"","url":"https://api.github.com/users/ddalcu","html_url":"https://github.com/ddalcu","followers_url":"https://api.github.com/users/ddalcu/followers","following_url":"https://api.github.com/users/ddalcu/following{/other_user}","gists_url":"https://api.github.com/users/ddalcu/gists{/gist_id}","starred_url":"https://api.github.com/users/ddalcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddalcu/subscriptions","organizations_url":"https://api.github.com/users/ddalcu/orgs","repos_url":"https://api.github.com/users/ddalcu/repos","events_url":"https://api.github.com/users/ddalcu/events{/privacy}","received_events_url":"https://api.github.com/users/ddalcu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T06:17:21Z","updated_at":"2015-01-20T07:53:14Z","closed_at":null,"body":"I could not get webGL to work, even though my browser supports it, I debugged the code, and it seems the problem is in  \r\nCCBoot.js::1564\r\n```javascript\r\n    if (nav.appVersion.indexOf(\"Win\") != -1) osName = sys.OS_WINDOWS;\r\n    else if (iOS) osName = sys.OS_IOS;\r\n    else if (nav.appVersion.indexOf(\"Mac\") != -1) osName = sys.OS_OSX;\r\n    else if (nav.appVersion.indexOf(\"X11\") != -1) osName = sys.OS_UNIX;  //by commenting this line out..fixes it.. i really doubt anyone still uses UNIX these days..., you should add && !Linux to it\r\n    else if (isAndroid) osName = sys.OS_ANDROID;\r\n    else if (nav.appVersion.indexOf(\"Linux\") != -1) osName = sys.OS_LINUX;\r\n```\r\n\r\nThis is what chrome reports for appVersion\r\nnavigator.appVersion\r\n\"5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36\""},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/comments/70616644","html_url":"https://github.com/cocos2d/cocos2d-html5/issues/2574#issuecomment-70616644","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/2574","id":70616644,"user":{"login":"VisualSJ","id":7113508,"avatar_url":"https://avatars.githubusercontent.com/u/7113508?v=3","gravatar_id":"","url":"https://api.github.com/users/VisualSJ","html_url":"https://github.com/VisualSJ","followers_url":"https://api.github.com/users/VisualSJ/followers","following_url":"https://api.github.com/users/VisualSJ/following{/other_user}","gists_url":"https://api.github.com/users/VisualSJ/gists{/gist_id}","starred_url":"https://api.github.com/users/VisualSJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VisualSJ/subscriptions","organizations_url":"https://api.github.com/users/VisualSJ/orgs","repos_url":"https://api.github.com/users/VisualSJ/repos","events_url":"https://api.github.com/users/VisualSJ/events{/privacy}","received_events_url":"https://api.github.com/users/VisualSJ/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T07:53:14Z","updated_at":"2015-01-20T07:53:14Z","body":"https://github.com/cocos2d/cocos2d-html5/pull/2583\r\nHere have fixed this problem~~\r\n\r\n^.^"}}