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.

Similar Messages

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

  • 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

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

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

  • My iPhoto closed unexpectedly and now it says "Rebuilding the iPhoto Library database". What is going on and are my photos still going to be there?

    My iPhoto closed unexpectedly and now it says "Rebuilding the iPhoto Library database". What is going on and are my photos still going to be there?

    With the amount of information you've provided it's impossible to offer a solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    what were you doing when iPhoto closed unexpectedly?
    how big is your library, i.e. how many photos?
    how long has the rebuilding been going on?
    do you have a recent backup of the library made just prior to this occurring?
    where is your library located?
    did you apply any updates or upgrades just prior to the problem occurring?
    are you running a "managed" or "referenced" library?
    what type of Mac?
    how much free space on your boot drive?

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

  • Shared Services database content not found in the specified database - EPM

    I installed three VM machines (Workstation) for the following on Windows 2003 OS:
    VM1 : Oragle DB 11g, Shared Services. Workspace
    VM2 : Financial Management, EPMA, Calc Manager
    VM3 : Microsoft Active Directory
    I have configured Database and Shared services successfully and all machines talk to one another.
    Also, I created the appropriate table spaces for the Hyperion products with the right access on the database. And, I am able to connect from the client (VM 2 to the Database VM 1)using SQLplus.
    When I tried to configure Financial Management, using the EPM System Configurator and put in the following values:
    Database Type: Oracle
    Server: VMDatabase (Name of VM1)
    Port: 1521
    SID ORCL
    Username: HFM
    password: *********
    It returned the error message: "*Shared Services database content not found in the specified database*"
    Can someone please help on what I need to check, Please!?
    Thanks for your time.
    K

    Hi,
    Information from Oracle Support:
    Shared Services database content not found in specified database
    Cause
    There is a flag in the shared services repository that indicates the shared services database is to be used as a registry. If that flag is not set, the configtool will not re-configure the database as a shared services repository.
    Solution
    Note: Make sure the Shared Services repository is backed up before doing any Shared Services Registry changes.
    The registry flag isRegistryDB must exist and be set to true on the Shared Services Database Connection.
    epmsys_registry.bat VIEW DATABASE_CONN
    Find the shared services database registry entry. The entry in bold will be missing. The italicized item is the 'unique_id' referenced later (different in each installation).
    COMPONENT - 3
    NAME - Database:ORCL:HSS
    ID - +11d1def534ea1be07ad8eb3012d2e3d310a7ff4+
    TYPE - DATABASE_CONN
    HOST - Database
    HYPERION HOME - /home/hypadmin/Oracle/Middleware/EPMSystem11R1
    PROPERTIES -
    isRegistryDB = true
    dbUserName = HSS
    dbJDBCDriverProperty = oracle.jdbc.OracleDriver
    dbJdbcUrl = jdbc:oracle:thin:@Database:1521:ORCL
    registryDatasource = EPMSystemRegistry
    registryDatasourceJNDI = jdbc/EPMSystemRegistry
    dbName = ORCL
    version = 9.5.0.0
    dbPort = 1521
    instance_home = /home/hypadmin/Oracle/Middleware/user_projects/epmsystem1
    dbPassword = GABaMyyplja+wLNCmLs8ag==
    Run the following update to populate the isRegistryDB flag with the unique_id being the ID field used in the DATABASE_CONN registry entry.
    epmsys_registry.bat addproperty #unique_id/@isRegistryDB true
    Repeat the epmsys_registry VIEW DATABASE_CONN to make sure the flag is now set.
    You will be able to reconfigure the shared services repository.
    You can mark it as Answer/Helpful if you feel so.
    Cheers!
    J

  • Unsuccessful rebuilding M/S Office database following the installation of a M/S Outlook update

    Running Mac OS X 10.7.4 with M/S Outlook 2011. I am a two day old ¨baby¨ on a MAC [heretofore a M/S OS PC user]. Did a M/S update yesterday including a ¨CRITICAL¨ M/S  Word 14.2.2 version installation.  Following the installation, I  got a notice that "an older version of M/S Database daemon is running and I must first delete "daemon" from Startup Items & then restart my computer. See MAC OS help."  OK, I confirmed daemon was not in the Startup Items and restarted my computer.  Now, when I attempt to open M/S Outlook I get a notice that "There is a problem with the Office database. To use the database you must rebuild it using the Database Utility"...Two choices " Cancel" or "Rebuild"  If I chose "Rebuild" I am notitified immeditely that "To use the database utility, you must first quit all Office applications"  [There are no office applications open EXCEPT the Database Utility which I confirm using the Mac´s Force Quit Application].  In any event, I <click> "Quit All" and after about 3 minutes a box popsup telling me the same thing "to use the Database Utility I must first quit all Office applications".  If I choose "Cancel" on the the original notice that stated "There is a problem with the Office database. To use the database, you must rebuild it using the Database Utility." the notice disappears from the screen for about 5 seconds and then reappears. The notice is currently on the screen as I type this plea for help with this issue.  As an aside, I followed the instructions detailed by Christopher Breen, Macworld.com dated 18 April 2012 article "Undoing the damage wrought by Microsoft´s Outlook update" wherein he details a procedure to "REPLACE" M/S Outlook´s Database Headers with a working copy and thereby rebuild the  Main Identity Database.  Here again, after I <click> "REBUILD" in the Database Utility it comes up "UNSUCCESSFUL" in rebuilding the Main Identity database. 

    There are other Forums that might have an answer, try this one:
    https://discussions.apple.com/community/windows_software/windows_compatibility

  • A package detection script to help rebuild the local database.

    At this point this is a quick "proof of principle" script inspired by this thread.
    This will download file lists for the specified repos and then check them against files on your system. It will then print a percentage for each package that indicates how many of that package's files were found on your system. Note that it ignores directories as that would lead to loads of partial false positives.
    The idea is that it should provide a decent starting point for rebuilding the local package database. You can safely run it on your system to see the output as it doesn't change anything.
    The script depends on Perl and curl. You should change the "$url" variable to a local mirror (I've used archlinux.org along with "`arch`" as relatively failsafe default). You can also add or remove repos from the "@repos" array.
    Again, this is just something that I threw together to see if it works and it's very much a "hands-on" script right now. I might flesh it out and try to add more features later. Note that it cannot determine which packages were installed as dependencies (although I posted a script somewhere on the forum that could explicitly install only top-level packages, which could probably be merged into this if it goes anywhere). It is also limited to repos that contain <repo>.files.tar.gz.
    #!/usr/bin/perl
    use strict;
    use warnings;
    use File::Temp qw/tempdir/;
    my $url = 'ftp://ftp.archlinux.org/$repo/os/' . `arch`;
    chomp $url;
    my @repos = qw/core extra community/;
    my $tmpdir = tempdir(CLEANUP=>1);
    foreach my $repo (@repos)
    my $files_url = $url;
    $files_url =~ s/\/\$repo\//\/$repo\//;
    $files_url .= '/' . $repo .'.files.tar.gz';
    `cd "$tmpdir" && curl "$files_url" | bsdtar -xf-`;
    opendir(my $dh, $tmpdir) or die;
    my @pkgs = readdir($dh);
    close($dh);
    my $l = 0;
    foreach my $pkg (@pkgs)
    my $i = length($pkg);
    $l = $i if $i > $l;
    foreach my $pkg (sort @pkgs)
    next if ($pkg eq '.' or $pkg eq '..');
    my @files = ();
    if (open(my $fh, '<', $tmpdir .'/'. $pkg .'/files'))
    while (defined(my $line = <$fh>))
    chomp $line;
    next if $line eq '%FILES%' or substr($line,-1) eq '/';
    push @files, '/' . $line;
    close($fh);
    my $n = scalar @files;
    next if $n == 0;
    my $i = 0;
    foreach my $file (@files)
    $i++ if -f $file;
    printf("%-${l}s %3d%%\n", $pkg, 100*$i/$n);
    else
    print "error: failed to open $tmpdir/$pkg/files\n";
    Example output:
    perl-xml-xpath-1.13-4 0%
    perl-xmms-0.12-4 0%
    perl-xyne-arch-0.95-1 100%
    perl-xyne-common-0.05-3 100%
    perl-yaml-0.70-1 0%
    Last edited by Xyne (2010-07-24 16:13:30)

    Thanks for the feedback, tavianator.
    Which false positives did it detect? Were they variants of installed packages?
    I think the false negatives are due to packages which manipulate their own files during or after installation. They should still show up in the list though, albeit with a lower percentage. I don't think there's any way to work around that.

  • Is there any way to rebuild the database in iTunes?

    I've moved my iTunes Library to another hard drive for more space and now it has lost track of the location of many of the songs on the new drive.  I have set up the location of the drive in Preferences/Advanced, but it has no effect.  Is there any way to rebuild the entire iTunes database at the same time so it is not necessary to locate each of the songs individually?

    Hello there, MataPunk.
    The following Knowledge Base article has great guidelines for recreating an iTunes Library:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

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

Maybe you are looking for

  • Can SQL*Plus connect via ODBC to NON-Oracle data source?????

    I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database. Is this possible? Or is SQL*Plus ability to conne

  • Urgent: InfoSet Query Problem

    Hi: I have a question related to the InfoSet issue I have been experiencing. I have a SD ODS which has e.g Material, Cal Year/Month and Sales Qty, Sales Amt. I have another ODS which contains BOM (Bill Of Material Data) consists of Material, Componen

  • OBI EE 10.1.3.2 installation problem

    Hello, I just installed OBI on Linux with OAS R3 (10.1.3.1.0). I can't manage to use Oracle Application Server Control to edit configuration files (instanceconfig.xml, etc). I've added in the opmn.xml parameters from the documentation (-DSAROOTDIR, -

  • ICal 3.0 alarms not occurring

    OK. So I have a pretty busy schedule, and I've set each event to send me an email 2 days prior to the event. I noticed I'm not getting emails for my events two days from now. I created a new test event to email me, and it still doesn't work. I export

  • How to copy and paste in Adobe ios?

    How to copy and paste in Adobe ios?