How do I remove/uninstall dead Services?

Discussion in 'Mac OS X System & Mac Software' started by rharder, Jan 16, 2002.

  1. rharder

    rharder Do not read this sign.

    Joined:
    Mar 29, 2001
    Messages:
    1,189
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia, USA
    My Services menu is littered with old Services for apps that aren't even on my computer any more. I sense terrible things in the future if the Services menu continues to be so unmanageable.

    Or is it...

    Does anyone know how to remove items from the Services menu?

    -Rob
     
  2. Klink

    Klink Member

    Joined:
    Apr 16, 2001
    Messages:
    631
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    nyc
    The System Services menu is dynamically built via application advertisement of NSServices. All applications (interested in using System Services) register there services (handled document types, and services) at runtime via NSServices dictionary key entries found in their respective info.plist file. Each time a user logs in, a list of available services is updated from the "/Applications" and /Library/Services" folders of all four file-system domains. The mechanism used is a message, calling applicationDidFinishLaunching: application delegate method (or equivalent) with NSApplication's setServicesProvider: method.

    The littered services in your Services menu are most likely remnants in the LSxxx preference files (LSApplications, LSClaimedTypes, and LSSchemes) of former applications that once resided on your system. I can't confirm this as I have no littered services in my Services menu. I was able to confirm the dynamic nature of the Services menu updates by simply removing an app out of the default /Application folder and logging out/in. The Service menu then reflects the missing application service after login. LSxxx preferences trio is modified at login (the repository for Applications Services? I don't know the data format of these preferences files, do you? It would be interesting to know as this holds all the NSWorkspace parameters for interapplication object messaging in Cocoa).

    What do you think? Would it be worth deleting/renaming your LSxxx prefs to find out?
     
  3. starfleetX

    starfleetX Elite Member

    Joined:
    Mar 25, 2001
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    NC, USA
    It's perfectly safe to delete the LS* files. In fact, deleting them and letting them be rebuilt is a common solution to some problems.
     
  4. rharder

    rharder Do not read this sign.

    Joined:
    Mar 29, 2001
    Messages:
    1,189
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia, USA
    Hey, it's the "Rebuild the Desktop" of the 21st Century!

    I'll try it...Thanks.

    -Rob
     

Share This Page