OS X 10.5 Spotlight Art für Finder Kind für bestimmte Datei (.dylib) trotz App (SeaMonkey) entfernt

548
idac

In der fernen Vergangenheit habe ich SeaMonkey installiert. In der apps Info.plist ist ein Fehler aufgetreten, der der App eine Reihe von Dateitypen zugeordnet hat, insbesondere .dylib. Der Fehler wurde erkannt, aber es wurde keine Lösung bereitgestellt (siehe Fehler 726488 - dylib Shared Libraries werden bei der Installation mit SeaMonkey verknüpft ).

 <dict> <key>CFBundleTypeName</key> <string>SeaMonkey Shared Library</string> <key>CFBundleTypeRole</key> <string>None</string> <key>CFBundleTypeOSTypes</key> <array> <string>shlb</string> </array> <key>CFBundleTypeExtensions</key> <array> <string>shlb</string> <string>dylib</string> </array> <key>CFBundleTypeIconFile</key> <string>component.icns</string> 

Die Zuordnung bedeutet, dass .dylib-Dateien in Finder und Spotlight (und dem zugehörigen SeaMonkey-Symbol) als "Kind" SeaMonkey Shared Library "angezeigt werden.

"Deinstallieren" (es gab kein "richtiges" Deinstallationsprogramm) SeaMonkey führte dazu, dass Finder .dylib-Dateien korrekt als "Mach-O Dynamic Library" erkannt hat. Jetzt erkennt Spotlight jedoch einige .dylib-Dateien korrekt, andere jedoch nicht, abhängig davon, wo Spotlight-Indexe und Berechtigungen für Ordner / Dateien gespeichert sind, im Gegensatz zum Umfang / Prozess einer Apps-Registrierung.

Gibt es von der Befehlszeile aus eine Möglichkeit, Spotlight systematisch nur Dateien mit kMDItemKind = "SeaMonkey Shared Library" zu indizieren, so dass die Dateien Kind als "Mach-O Dynamic Library" angezeigt werden? Oder gibt es eine intelligente Möglichkeit, die Verwendung der Info.plist "umzukehren" - es gibt andere Verknüpfungen, z. B. .plugins

Danke Idac

OS X 10.5.8

0

1 Antwort auf die Frage

0
juandesant

You can do two things:

  1. Use RCDefaultApp control panel (http://www.rubicode.com/Software/RCDefaultApp/) to disassociate the extension:
    1. Install the panel, and open it
    2. Go to the Extensions tab
    3. Search the dylib extension, and set Terminal as the Default Application (that's the normal setting; you can remove the extension entirely, and it will have no associated icon because of that)
  2. Alternatively, if you don't want to install RCDefaultApp, rebuild the Launch Services Database. For Mac OS X 10.5, you have to:
    1. Move to the trash the following files:
      1. /Library/Caches/com.apple.LaunchServices-0230.csstore
      2. /Library/Caches/com.apple.LaunchServices-023nnn.csstore where nnn is the user ID to be reset (for instance, 501 for the first user created in the system). Or all similar files, if you want to reset all accounts.
      3. /Library/Caches/com.apple.LaunchServices-0140.csstore and /Library/Caches/com.apple.LaunchServices-014nnn.csstore might be present, and need to be trashed as well, if you upgraded from Tiger.
    2. Restart your Mac. If the problem persists:
      1. Delete the ~/Library/Preferences/com.apple.LaunchServices.plist file
      2. Repeat the steps above (the files in /Library/Caches will have been recreated)

For other Mac OS X versions, try the instructions in this page: http://www.thexlab.com/faqs/resetlaunchservices.html