diff --git a/code/client/launchapp b/code/client/launchapp index e3674c4b..90cf7849 100755 --- a/code/client/launchapp +++ b/code/client/launchapp @@ -6,9 +6,9 @@ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -50,7 +50,7 @@ def main(): # when run via launchd at loginwindow context, os.environ['USER'] # is undefined, so we'll return root (the effective user) thisuser = "root" - + if (consoleuser == thisuser) or \ (consoleuser == None and thisuser == "root"): cmd = ["/usr/bin/open"] @@ -68,7 +68,7 @@ def main(): # sleep 10 secs to make launchd happy time.sleep(10) exit(0) - + if __name__ == '__main__': main()