Can launch app as root but not as any other user
Can launch app as root but not as any other user
- Subject: Can launch app as root but not as any other user
- From: "Alexander Reichstadt" <email@hidden>
- Date: Wed, 07 Aug 2002 02:23:45 -0700
Hi,
this is the weirdest problem I have come across so far. Earlier on I
thought this was linked to some installation problems with the
package, after fixing those which did exist, it still wouldn't launch. I
then worked my way through the inside of the app and checled
everything regarding privs, groups and owner. I compared it to
Omnigraffle which in structure is very similar using an AppleScript
placed in the Scripts directory inside the app, but not being an AS
Studio app as such. I just used the very same thing and am
certain that privs are ok, inside and outside the app.
I then came to realize that I never tried to actually launch the
compiled version in the build folder as lowlevel and before making
a package out of it and installing it. So I did that and it turned out
that the problem already exists in the build of the app. If I launch it
being logged in as root it launches, everything works fine, when I
do the same being either the installation user or some john doe it
doesn't but pops up in the dock to disappear immediately again.
I then went through Terminal and the feedback I get is this:
Welcome to Darwin!
[localhost:~] root# su lowlevel
[localhost:/var/root] lowlevel% /Applications/MyApp.app/Contents/
MacOS/MyApp
kCGErrorIllegalArgument : initCGDisplayState: cannot map display
interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get
connection port
kCGErrorIllegalArgument : CGSNewConnection cannot get
connection port
kCGErrorInvalidConnection : CGSGetEventPort: Invalid connection
[localhost:/var/root] lowlevel%
...where lowlevel is the john doe user account that doesn't have
root-privs. Also, using the installation user of OSX gives em the
same stuff in return.
It might be worth to mention that the applescript is only there to
poll and utilize internet connect, it returns 1 in the idle routine
which causes it to poll every second instead of the default 30
seconds. It does that to query the status and do it's magic then. I
can't think of that being a problem where Omnigraffle doesn't
show this behavior at any stage, unless the issue would be
directly linked to Internet Connect which doesn't seem likely to me
neither as far as I can see.
I have no clue why it does that, as root things are blue skies and
sunshine, anyone else it's a mess and I am just at a loss as to
what else I can try, I also talked to it from calm to screaming, but it
still denies to work.
Did anyone ever have similar problems or has an idea of what
could cause this problem?
Thanks
Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.