{"action":"created","issue":{"url":"https://api.github.com/repos/simbody/simbody/issues/357","labels_url":"https://api.github.com/repos/simbody/simbody/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/simbody/simbody/issues/357/comments","events_url":"https://api.github.com/repos/simbody/simbody/issues/357/events","html_url":"https://github.com/simbody/simbody/pull/357","id":66249524,"number":357,"title":"Improve simbody-visualizer relocatability on Linux.","user":{"login":"chrisdembia","id":846001,"avatar_url":"https://avatars.githubusercontent.com/u/846001?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdembia","html_url":"https://github.com/chrisdembia","followers_url":"https://api.github.com/users/chrisdembia/followers","following_url":"https://api.github.com/users/chrisdembia/following{/other_user}","gists_url":"https://api.github.com/users/chrisdembia/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdembia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdembia/subscriptions","organizations_url":"https://api.github.com/users/chrisdembia/orgs","repos_url":"https://api.github.com/users/chrisdembia/repos","events_url":"https://api.github.com/users/chrisdembia/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdembia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-03T23:36:37Z","updated_at":"2015-04-04T00:02:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/simbody/simbody/pulls/357","html_url":"https://github.com/simbody/simbody/pull/357","diff_url":"https://github.com/simbody/simbody/pull/357.diff","patch_url":"https://github.com/simbody/simbody/pull/357.patch"},"body":"If one relocates their Simbody installation, the primary mechanism for finding\r\nsimbody-visualizer no longer works (the original installation path is baked\r\ninto the code). The backup plan is to define SIMBODY_HOME; then, $SIMBODY_HOME/bin is added to a search path. This works for windows, since simbody-visualizer is installed to $SIMBODY_HOME/bin. However, on Linux, simbody-visualizer goes into $SIMBODY_HOME/libexec/simbody. With this PR, the *relative* path of simbody-visualizer is ALSO baked into the code, resolving the platform-dependent issue.\r\n\r\nTested on Ubuntu 14.04 and Windows 8.1: I installed Simbody then built a client project that uses the visualizer. At first, my application can find the visualizer. Then I move the installation. My application can no longer find the visualizer. I define SIMBODY_HOME appropriately, and then the application can again find the visualizer."},"comment":{"url":"https://api.github.com/repos/simbody/simbody/issues/comments/89465336","html_url":"https://github.com/simbody/simbody/pull/357#issuecomment-89465336","issue_url":"https://api.github.com/repos/simbody/simbody/issues/357","id":89465336,"user":{"login":"sherm1","id":4088016,"avatar_url":"https://avatars.githubusercontent.com/u/4088016?v=3","gravatar_id":"","url":"https://api.github.com/users/sherm1","html_url":"https://github.com/sherm1","followers_url":"https://api.github.com/users/sherm1/followers","following_url":"https://api.github.com/users/sherm1/following{/other_user}","gists_url":"https://api.github.com/users/sherm1/gists{/gist_id}","starred_url":"https://api.github.com/users/sherm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sherm1/subscriptions","organizations_url":"https://api.github.com/users/sherm1/orgs","repos_url":"https://api.github.com/users/sherm1/repos","events_url":"https://api.github.com/users/sherm1/events{/privacy}","received_events_url":"https://api.github.com/users/sherm1/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T00:02:27Z","updated_at":"2015-04-04T00:02:27Z","body":"Looks perfect -- thanks!"}}