Re: Running an application owned by a different user
Re: Running an application owned by a different user
- Subject: Re: Running an application owned by a different user
- From: Ondra Cada <email@hidden>
- Date: Sun, 9 Apr 2006 15:00:18 +0200
Andrew,
On 9.4.2006, at 14:36, Finlay Dobbie wrote:
I need to be able to make my cocoa application run a separate gui
application that exists only in the application directory of a
different user to the one currently logged in.
You can't do this. The window server will only accept connections from
the user currently logged in to the GUI and root.
Fortunately, this limitations does not apply anymore.
Mac OS X indeed used to be inexplicably broken in this regard, but
the bug has been fixed meantime--I believe it was in 10.3.0, but in
that I may be wrong (Apple fixed that along with their "fast user
switching" feature, which would of course not work properly with the
bug). Now, you can run any number applications in any number of
accounts concurrently (which, after all, is quite normal and used to
work without a glitch fifteen years ago in the direct Mac OS X
predecessor).
To test, just go in Terminal, su to any user (sudo to root), and
launch the app giving its executable name, like
su otherUser
/Applications/TextEdit.app/Contents/MacOS/TextEdit
or
su adminUser # you cannot sudo from your non-admin work account,
of course
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden