Can't open applications as another user any more
| Originator: | mgprot | ||
| Number: | rdar://7699666 | Date Originated: | 28-Feb-2010 04:23 PM |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.6.2 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
It is no longer possible to manually start GUI programs with another User account.
Fast user switching is fine for switching between accounts for separate humans, however,
it is also valuable to be able to run processes under different accounts, all managed by a single person.
For example, I have a "git" user and several other accounts running daemons so that I can share
data with friends and colleagues. I manage these accounts via the Terminal & shell from my normal user account. This means that I can reference my personal data (e.g.: email descriptions of problem reports and notes that I've kept from previous actions) while simultaneously working on the other account.
Steps to Reproduce:
Start Terminal.app
Switch to another user on the local machine
Start any GUI application
e.g.:
% su - {user}
% open /Applications/Automator.app
Expected Results:
The application should appear on the screen.
Actual Results:
% open /Applications/Automator.app
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/Automator.app
% open /Applications/Vim.app
Sun Feb 28 16:15:55 hymie Vim[1240] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
Regression:
This works perfectly until at least OS X 10.5.8
Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Workaround: sudo -i -u {user} {cmd} still works
For example:
% sudo -i -u {user} tcsh % open /Applications/Vim.app