Rebuild Launch Services Database

I'm about to connect a SuperDuper clone of my Tiger installation to my fresh, clean install of Leopard. I'm worried that when I open the Applications folder on my Tiger clone, the LaunchServices database will be populated with all of these applications that I never intend to use.
How do I reset/rebuild the LaunchServices database in Leopard, I cannot locate 'lsregister' -- is there a new method, or have things changed in Leopard?
Alternatively/also, is there a way to tell launch services NOT to scan external volumes, or a specific directory?
Thanks everyone for your help!

What do you mean by 'removing it'?
I hope you don't mean the 'lsregister' file?
The command to run (adapted for Leopard from other posts I've seen) is:
"/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fra mework/Support/lsregister -kill -r -domain local -domain system -domain user"
without the quotes. I think Finder needs to be restarted to see the effect there.
Better still, here's an adapted AppleScript I got from a post:
BEGIN__SCRIPT
display dialog "The Finder must quit and will relaunch after the Launch Services rebuild is complete. The rebuild may take several minutes, during which time you should refrain from using any other apps." buttons {"Cancel", "Rebuild LS Database"} default button 2 with icon caution
ignoring application responses
tell application "Finder"
delay 2
quit
end tell
end ignoring
delay 5
tell application "System Events" to set runningapplications to get name of every application process
if runningapplications contains "Finder" then do shell script "killall Finder"
do shell script "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fr amework/Support/lsregister -kill -r -domain local -domain system -domain user"
tell application "Finder"
delay 2
activate
end tell
tell me to activate
display dialog "The Launch Services rebuild is now complete." buttons {"OK"} default button 1 with icon note
END_SCRIPT
Paste the above into (between the delimiters) "Script Editor" and then do a File->Save As. Specify a "File Format" of "Application" and place it somewhere - e.g. Desktop, and run it.

Similar Messages

  • Rebuild launch services database in Lion problem

    Everytime that i restart the computer (MacBookPro 17" latest model) the "launch services database" in Lion get spoiled and i have to rebuilt it again. Does not happen when login/out. Any idea what the problem could be or if it is a seriuos one. The computer seems to run OK

    1-  I have to rebuild "launch services data base" for every account every time that i restart the computer, except the guest account because the "launch services data base" is not spoiled !
    2-  For example see the installer .pkg icons (has not been rebuilt "launch services data base") in the administrator account and same pkg when i switch to the guest account (here the "launch services data base" is not spoiled), why? :
    anybody any clue? look at these pictures :

  • Terminal command to rebuild launch services database?

    Anyone know the exact terminal command to rebuild the launch services database for Mavericks?

    You MUST recopy the code above as there are (SPACES) that Terminal will not accept.  e.g.
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user ; killall Dock
    Notice, 1st line 'LaunchSe' is cut off...this will show up as a blank space when copy/paste.  Edit this prior to using it in terminal otherwise it could become very frustrating.
    Hope this helps it did for me once I did it correctly

  • Repairing Launch Services Database

    I had a problem embedding an html e-mail in Apple Mail. Safari could not locate Apple Mail. The default e-mail reader was set to Mail. But when I reselect it worked fine.
    V.K. suggested that the launch services database was the problem. Is it something that needs repairing and if so, how does one repair it?
    Will this also fix the problem I have with EPS files not opening up in the correct parent application (Photoshop versus Illustrator)?

    I think I told you that you were fine in the other thread.
    you can rebuild launch services database using the following terminal command
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    but it will not change the default application set to open a certain file type. to do that select and eps file and enter command+i. in the resulting popup go to the "open with" section and select the application you want to open it with. then click "change all".

  • Launch Services Database rebuilding at restart

    Well as it says in the title, with every restart of my machine, the computer is rebuilding the launch services database.
    I am not sure — if it's actually rebuilding the database; but every time I restart and open a python script for e.g. — it opens a dialogue box point to the first ever launch of "Sublime Text". Same with Textmate or any other software.
    For some files, it forgets the application associated with it. For e.g. sometime back I set Sublime Text to open files without any extension. That doesn't happen anymore.
    I am currently running 10.8.2.

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Rebuilding the Launch Services Database?

    If one rebuilds the Launch Services Database, can the System be Optimized immediately, or does one have to restart after rebuilding the LSD (then Optimize after the restart), for the rebuilt database to be included in the Optimization? Thanks.

    Great news, thanks.

  • Launch Services database?

    I have noticed recently that I have multiple listed applications when I am launching files from my desktop "open with" command. With a fresh bootup their is only 1 of each app. but as the day goes on I can have as much as 4 duplicates of each application which caused much confusion on which app to use to launch a file.
    I was told that this maybe due to the OS Launch Services database and to use Cocktail to correct this problem.
    Can anyone shed some light on this situation also?
    Thanks

    You can reset the Launch Services database as follows:
    Rebuild LaunchServices Database
    For Tiger users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.
    For Leopard users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.

  • Are there any Apps to manage OS X's Launch Services Database?

    I should like to remove some entries within the "Open With" menu, and prevent further automated additions or re-additions.
    I know how to reset the database, but that is insufficient to prevent additions from apps on drives connected or networked at a later time.
    Help appreciated.

    You could install BootCamp which does "resize" slightly, then erase or convert the resulting Windows partition.
    One reason to do so is to have a small "emergency OS X" volume, similar to MicroMat TTPro's "eDrive" when you have just one hard drive and on the road and no FW drive handy.
    Another reason to partition is to keep the boot volume from being cluttered with music and video files or such. I have a lot of large DMG files that I prefer to keep elsewhere.

  • That Launch Services thing again?

    OK folks. Please help if you know....all of a sudden my textedit won't open an RTF document or txt document when I double click on it. If I go "Open With" (right click say), then no problem.
    I've read all the forums so:
    1) I've copy/pasted various scripts (involving kill lsregister things) to use in the Terminal...reboot
    2) I've used Onyx and Yasu to reset the Launch Services database....reboot
    3) I've trashed the LaunchServices caches in the Library/Caches plus the LaunchServices plists...reboot
    Each time, the issue is fixed. Then after some time (say half an hour) I retry to open an rtf and bingo, tries to open but nothing happens. Repeat any of 1 to 3 above, temp fix, then....
    Any ideas any ideas? (Save complete reinstall????)
    Message was edited by: Chris Marshall3

    The reason why is that the cache files when they are deleted by a program like Onyx are being written to at exactly the same moment they are being deleted. This results in left over corrupt files which rebuild themselves as corrupt files in an endless loop every other reboot. One thing that may help is to remove issues which cause the disk to be too full*:
    http://www.macmaps.com/diskfull.html
    - * Links to my pages may give me compensation.

  • Launch Services crashing - AFP, SMB, NTFS, exFAT, FAT32 all unmountable

    My Mac Pro was working fine until this month hit... first I noticed that I could no longer mount my network shares (AFP and SMB shares on a Drobo 5n). My first assumption was that there was something wrong with my shares, but that's not the case as every other computer and device I have has no issues connecting and mounting the shares. Not only that, but my Windows partition on this Mac Pro connects fine as well. That's when I noticed my Windows partitions were no longer mountable in OS X either. So I ran some tests with a flash drive in disk utility, after formatting the drive in exFAT, FAT32 or NTFS the flash drive is no longer mountable... HFS still mounts of course, but not anything else.
    So at this point, I've got AFP, SMB, NTFS, exFAT and FAT32 all completely unsuable in OS X. Pretty messed up.
    Taking a look at console shows the same messages over and over again:
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.328 PM com.apple.kextcache[11922]: Child process /usr/sbin/kextcache[11923] exited due to signal 6.
    5/3/13 11:49:30.328 PM com.apple.kextcache[11922]: Error 107 rebuilding /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache.
    5/3/13 11:49:30.329 PM com.apple.kextd[11869]: kextcache error while updating / (error count: 10)
    5/3/13 11:49:30.329 PM com.apple.kextd[11869]: async child pid 11922 exited with status 6
    5/3/13 11:49:30.362 PM ReportCrash[11888]: Saved crash report for kextcache[11923] version 268.12 to /Library/Logs/DiagnosticReports/kextcache_2013-05-03-234930_LaBonty.crash
    I've tried literally everything I can think of... clearing caches, repairing disk permissions, rebuilding launch services, rebuilding spotlight, rebuilding the kext cache, running maintence scripts, etc. etc.... nothing has helped.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. You won't be able to mount network shares, but a flash drive should mount. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Launch Services - Resetting Generator Caches.

    I'm seeing a lot of messages in my system.log file that look like this:
    Safari[15135]: [QL] Launch Services Database change notification (com.apple.LaunchServices.DatabaseChange). Resetting Generator caches.Finder[167]: [QL] Launch Services Database change notification (com.apple.LaunchServices.DatabaseChange). Resetting Generator caches.System Preferences[15180]: [QL] Launch Services Database change notification (com.apple.LaunchServices.DatabaseChange). Resetting Generator caches.
    I see a block of these messages every 5 seconds. I tried googling around but can't seem to find any information about it. Has anyone else seen this? Should I be concerned about it?
    Thanks.

    I'm wondering if this has something to do with a broken spotlight index. I manually deleted my spotlight index from single user boot, and now I'm getting this message hundreds of times as spotlight reindexes my HD. I wonder if some glitch in spotlight causes various *.qlgenerator plugins to be repeatedly found, and thus causes quicklook to reload them over and over again...?
    It is just a theory.

  • Launch Sevices Database

    Hey Peoples,
    Does anyone know how to restore one's "Launch Services Database". I believe I've wiped mine clean, as when I double click on files I'm prompted with "You are opening this application for the first time", on programs I've used for years.
    Much thanks,
    Jackson

    From http://developer.apple.com/carbon/tipsandtricks.html
    From the "Terminal" application:
    cd ~/Library/Preferences/
    rm LS*
    rm .LS*
    Then log out and log back in.

  • Filevault and Launch Services

    I am having the same problem that so many people reported with Mac OS 10.5: every time I log out, the Launch Services plist is erased. I shouldn't say "every time" since I can't be sure, but it just happened the last three times I logged out. I use FileVault + Time Machine, which are associated with this bug in OS 10.5 (see https://discussions.apple.com/thread/1236250?start=0&tstart=0).
    For instance, I just did a back up by logging out and logging back in, and (after Firefox complained that it was no longer the default app for web browsing), the file ~/Library/Preferences/com.apple.LaunchServices.plist looks like:
        LSHandlers =     (
                LSHandlerRoleAll = "org.mozilla.firefox";
                LSHandlerURLScheme = http;
                LSHandlerRoleAll = "org.mozilla.firefox";
                LSHandlerURLScheme = https;
                LSHandlerRoleAll = "org.mozilla.firefox";
                LSHandlerURLScheme = ftp;
                LSHandlerContentType = "public.html";
                LSHandlerRoleAll = "org.mozilla.firefox";
    and it has a create date of a few minutes ago (the time of logging in).
    Any guesses about how I might fix this? One solution (which I haven't yet tried) is to make a global launch services, see http://hints.macworld.com/article.php?story=20091112095601678. This was a suggestion for 10.5.
    A

    There is really no need to do that. "lsregister" is automatically run when you startup anyway, and running a secondary instance is only likely to cause problems. See Launch Services Programming Guide: Application Registration:
    All applications available on the user’s system must be registered to make them known to Launch Services and copy their document binding and other information into its database. It isn’t ordinarily necessary to perform this task explicitly, since a variety of utilities and services built into the Mac OS X system software take care of it automatically:
    •A built-in background tool (lsregister), run whenever the system is booted or a new user logs in, automatically searches the Applications folders in the system, network, local, and user domains and registers any new applications it finds there. (This operation is analogous to “rebuilding the desktop” in earlier versions of Mac OS.)
    Hope this helps....
    Message was edited by: MarkDouma®

  • EPM 11.1.2.3 Issue with Rehosting Shared Services Database

    Hi All,
    We have installed EPM 11.1.2.3 on a distributed environment using QA database. Now we have restored the database to a Production Database.
    As per the process, we deleted "reg.properties" from EPM_Oracle_Instance/config/foundation/11.1.2.0 and tried launching the EPM configurator from both
    1) EPM_ORACLE_INSTANCE\bin
    2) EPM_ORACLE_HOME\common\config\11.1.2.0.
    But, the "configure database" for Hyperion Foundation is grayed out in both the cases and we are not able to release it for the users.
    I Request you to please help us.
    Thanks for your help.
    Best regards,
    Jayant Sahewal

    Hi John,
    Thanks for the suggestion. I would have tried forceRegistry as the last option.
    But, I figured out that now reg.properties is saved at 2 locations in EPM 11.1.2.3.
    1) EPM_Oracle_Instance/config/foundation/11.1.2.0
    2) EPM_ORACLE_HOME/User_Projects/config/foundation/11.1.2.0
    And, to rehost shared services database, reg.properties needs to be deleted from both the locations.
    I hope Oracle corrects their documentation. In their EPM 11.1.2.3 deployment options guide, reg.properties isn't mentioned at all.
    Best regards,
    Jayant Sahewal

  • Hyperion Shared Services Database error

    Hi there!
    I am trying to install hyperion financial management and for this i already installed the following on windows 2003 server:
    1. Installed Oracle application server
    2. Oracle Database
    3. IIS Web Server
    4. Installed Hyperion shared services
    5. Configured shared services without errors
    After that i launched shared services page by http://orixacc:7777/shared
    i got the page with the following errors
    SEVERE ERROR: The Hyperion Shared Services database is not configured correctly. Please contact your system administrator
    If anybody can help me to solve this problem, i will be thankful.
    During confguration there was no error at all.

    OS - 2003 R2 Server
    Database - MS SQL Server 2000
    Hyperion -9.2.1 version
    Its a PROD server
    All the HFM applications are running properly.The problem is with the Shared Services only, even by giving the url i am getting the above error.previously its working fine.i am not getting any clue on this.even there is no trace on logs.

Maybe you are looking for

  • I cannot get my IPhone 3gs to restore to my last backup?

    I had an issue with IPhone 3gs earlier so I synced and backed-up the phone and then attempted to restore the phone to see if I could eliminate the problem. After the restore and software update, it brought me to the "Set up your IPhone" page and I se

  • Can't access gmail after ios 8.1.2 installation

    I've been living and working in China and using iphone for the past 5 years without any problem accessing any of my gmail accounts.  But for the past couple of weeks after I upgraded to iOS to 8.1.2 on my iphone 5S and my ipad air 2, I noticed I don'

  • Podcasts will not sync to Classic

    I'm at a complete and utter loss. One day updated podcasts stopped syncing to my iPod Classic.  I've done everything I can think of, google searches, asking friends and can't come up with a solution. Here's what I've tried: -Checked my anti-virus sof

  • How to import a large file of 5 gb

    Hi all, I have a file of 5gb to be loaded into Oracle 10g in to a single column and add a primary key to it in another column, actually I need to correct some records in the file after loading for which I have script one records in file is as below c

  • Java Program executing on foreign PC

    Hello, I have the following Question: I have written a Project in Eclipse called my_prog which is containing the default package and 2 other packages (p_client, p_server) The "Runner-Class" with the main method is in the default package I can execute