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.

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 :

  • 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.

  • 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?

    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.

  • 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.

  • 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 - 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®

  • Unable to launch the Database Configuration Assistant

    I have installed Oracle 10g Database Release 1 and I can’t launch the Database Configuration Assistant (DBCA). The file c:\oracle\product\10.1.0\Db_1\bin\launch.exe does not exist on my computer.
    My intent is to design a simple database in Oracle for an organization that uses Oracle extensively. I am running WinXP professional on my home computer. WinXP includes Microsoft IIS and I regularly test web-packaged files on this “intranet server” using the domain “localhost”. I downloaded Oracle 10g and installed it to the c:\ drive following the instructions in Chapter 2 of the tutorial “Oracle 2-day DBA Course”. I selected “basic installation” and “standard edition”.
    I note that in the tutorial, the Oracle Home path has forward slants. The summary page of the Oracle installation wizard shows my installation with back slants. Do I need to install Oracle 10g to one of the directories in Microsoft IIS?
    Nicholas

    Install the Oracle database with the procedure in
    http://www.oracle.com/technology/obe/2day_dba/install/install.htm
    When you select the Install button, the Oracle universal installer displays the installation of the Database Configuration Assistant.
    Uninstall the previous installation. To uninstall database 10g
    1. Stop the oracle services Adminstrative Tools>Services.
    2. Uninstall the installed products in Oracle Universal Installer.
    3. In the Run field specify
    Regedt32
    In the Registry Editor select
    SYSTEM>Current Control Set>Services
    Remove the oracle services.
    4. Restart and dlete the directories in the oracle installation directory.

  • Resetting launch services doesn't stop multiple apps in 'open with'

    Well, I followed Dr. Smoke's advice on Resetting Launch Services but it made no difference. I still have the same multiple copies of a single application appearing in the Open With menu for a given document. What happens when what should work doesn't?

    You could try Mark Douma's Applescript for using lsregister to rebuild the LaunchServices. I put a copy up here:
    http://homepage.mac.com/francines/.Public/RebuildLaunchService.zip
    It evidently REALLY rebuilds things, and requires a restart.
    Francine
    Francine
    Schwieder

  • 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

Maybe you are looking for

  • Why does my original Apple ID keep popping up on my iPhone5?

    I have cahnged my ISP from Earthlink to Comcast to take advantage of faster internet access. In doing so, I gave up the Earthlink account but now it continues to pop up on my iPhone5 asking for the password. Is there a way to prevent this annoying re

  • Grant Agent Job Reader/Operator permission in SQL SERVER 2000

    Hello Experts Today I got a request to grant sql server agent job read access. The server is SQL 2000. It was totally new for me. I googled but couldn't find anything useful. I feel pretty uncomfortable with SQL 2000. Have never worked before. Please

  • New PC & transferring Music & Playlist

    I'm sure it's me! But--there's something I'm missing. In short: I have purchased a new PC and I simply want to transfer music and playlist to that PC. Previously my music was on external drive letter (D), on new PC that same drive is a different lett

  • GroupWise 7.0.3 Notify not working

    Hi, We have GroupWise 7.0.3 and Notify running on staff machines. One user's notify application is not working correctly, e.g. not notifying her of appointments/mail via dialog boxes. I have removed and re-installed GroupWise but no luck. I have also

  • Why is icloud slow

    Why is icloud so slow on my pc?  How can I fix this?