[Q] Correct way to identify an application, Launch Services, & Spaces
[Q] Correct way to identify an application, Launch Services, & Spaces
- Subject: [Q] Correct way to identify an application, Launch Services, & Spaces
- From: Eric Gorr <email@hidden>
- Date: Thu, 7 May 2009 13:40:11 -0400
I have two versions of my application (appname 2008 & appname 2009).
They both have the same identifier:
com.mycompany.appname
Is this ok so far?
So, if I reset the launch services database by doing:
lsregister -kill -r -domain local -domain system -domain user
and launch & quit appname 2008 and then launch appname 2009, I can
dump the launch services database by doing:
lsregister -dump
When I look at the output, I see that appname 2008 is listed first and
then appname 2009 comes later.
Since appname 2009 is still running, I can go to the Spaces
preferences and add the application to the Application Assignments
list. However, the name that shows up in the list is appname 2008 when
it should be appname 2009
If I go through this process again, but launch appname 2009 first, the
correct name will show up in the Application Assignments list.
Now, I believe I understand what is going on.
Since appname 2008 appears first in the Launch Services database and
has the name identifier as appname 2009, Spaces finds appname 2008
first and uses the name from that application.
So, is it the "right thing" for two versions of the application to
have the same identifier? Based on my understanding, this is what I
want to do. I would not want to make the identifiers different by
doing something like:
com.mycompany.appname.2008
com.mycompany.appname.2009
Or, do I?
Is there something else that I am missing that would make this work
correctly?
Thank you.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden