cannot start
Brought to you by:
bbergstrand
Change Desktop will not start. I recieve the following dialog
when I try to start it:
Could not open "/Applications/Utilities/ChangeDesktop.app/
Contents/Resources/ChangeDesktopDaemon.app". Error:
-10827.
lgrenzebach at pvusd dot com
Logged In: YES
user_id=595265
This is a problem with the Panther. It seems to be due to a bad
launch
database cache file. I've had a few other users report this same
error,
and using one of the cache cleaners from VersionTracker fixed the
problem for them.
Here's what I suggest.
Disable the Menu Extra if you are using it.
Stop the Server and quit the CD GUI.
Now trash your copy of CD and empty the trash.
Log out.
Log back in and run "Panther Cache Cleaner" (avail. from VT) to
remove
your Launch Services caches.
Log out.
Log back in and copy a new version of CD from the install disk
image.
Log out again.
Log back in and try to start CD.
You may have to replace the first Log Out with a reboot. Seems
logging out may not be enough.
HTH.
Logged In: YES
user_id=511880
I tried the workaround listed above, and it worked once. It
then resumed the same error. (I tried the shallow clean and
not the deep).
This is under 10.3 with Fast User Switching enabled. The
problem seems to occur whether I'm the first or second user.
I guess I'll try downloading the source and see if I can
start this with the debugger on to get a more detailed bug
report.
Logged In: YES
user_id=72358
I was having a problem like this with Panther 10.3.2. The
solution was to remove 3 files:
/Library/Caches/com.apple.LaunchServices.6B.csstore
/Library/Caches/com.apple.LaunchServices.UserCache.csstore
~/Library/Caches/com.apple.LaunchServices.LocalCache.csstore
And then restart. I didn't have to remove ChangeDesktop or do
anything else. Everything worked after that.
Logged In: YES
user_id=72358
Update to my last comment regarding the server. After it had
been working ok for a few days, it started to give me the
LaunchServices error again.
SystemUIServer[205] CDM - startStopDaemon: LaunchServices
error -10827
Logged In: YES
user_id=72358
I just fixed the problem from the CVS tree. Upon inspection of
the executable, the OS thinks that ChangeDesktopDaemon.app/
Contents/MacOS/ChangeDesktopDaemon is a unix shell script.
Changing this in the Executable Launch Configuration to Run
action and Launch using Executable Runner takes care of the
problem.
The same should also be done to the ChangeDesktopPreferences.
Both are set Debug action and launch using GDB.
I also fixed a couple of other minor things to get it to compile.
Logged In: YES
user_id=72358
My prior posting was not entirely correct. The problem is
happening here:
startStopDaemon
err = LSOpenCFURLRef((CFURLRef)url, NULL);
Logged In: YES
user_id=595265
Nick,
I'm working on a more permanent solution right now. I have a test
version out to a user now, and am waiting for his response. My
hypothesesis is that Panther has a problem with applications that
have the same bundle id. So I just changed the bundle id of the
server in the test version.
Logged In: YES
user_id=595265
Bad news. My hypothesis below was incorrect, the change made
no difference. I'm not sure what else to do right now.
Logged In: YES
user_id=72358
After a little more experimentation, it seems that replacing
err = LSOpenCFURLRef((CFURLRef)url, NULL);
with something like this starts the server under Panter:
[[NSWorkspace sharedWorkspace] launchApplication: path];
I'm also going to try with NSTask and see how that works.
Logged In: YES
user_id=595265
I've posted a beta version for testing a workaround for this annoying
problem. If you've been affected by this bug, please give the following
version a try.
http://www.bergstrand.org/brian/software/bin/
ChangeDesktop2.4.3b4.dmg
To install, move the current version to the trash, then copy over this new
version.
Then, from the Terminal run the following commands to delete the LS
cache files and then logout and log back in. You can then try the new
version and let me know if it works or not.
sudo rm /Library/Caches/com.apple.LaunchServices.*
rm Library/Caches/com.apple.LaunchServices.*
MD5 (ChangeDesktop2.4.3b4.dmg) =
e40661378e0ce018d9a8df819cb96696
Logged In: NO
I will give this a shot- although I only have the problem here at
work, and not at home, and my two systems are fairly similar-
same era G4's both running 10.3.3.
Anyway, the way I've worked around this is to save a copy of the
daemon. Everytime I restart or log in, I trash the ChangeDesktop
folder in my home Library, and replace the daemon in the actual
application itself. I can then restart the server, but only from the
ChangeDesktop application itself, not from the menu item, and,
yeah, I want that menu item- it is the one thing I do want....
- Wade
Logged In: YES
user_id=595265
I've posted 2.4.3 final:
http://www.bergstrand.org/brian/software/bin/ChangeDesktop2.4.3.dmg
MD5 (ChangeDesktop2.4.3.dmg) = 55b2aacaf39ec92833260a5c7bb840f9
I still have no idea what is causing the actual errors, but the workaround
seems to skirt the issue and allow things to work.
Logged In: YES
user_id=595265
The next chapter in the saga...
Although 2.4.3 and greater provides a workaround for this problem, it
appears this thing just does not want to go away. If you have added the
Server to your login auto-launch list, this problem can still affect you.
The system uses LaunchServices to auto-launch applications, but does
not have the manual fallback that CD has, so the Server can fail to
launch at login. This will be logged in the Console as:
loginwindow[256] LSOpenFromURLSpec return err = -10827
Right now, the only way around this is to manually launch the Server
using ChangeDesktop or the menu extra.