Changeset 1450

Show
Ignore:
Timestamp:
07/16/11 02:25:46 (10 months ago)
Author:
astrange
Message:

Delete the user's QT web plugin cache after installing

Fixes #572

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/CPFPerianPrefPaneController.m

    r1430 r1450  
    628628} 
    629629 
     630- (void)deletePluginCache 
     631{ 
     632        // delete the QuickTime web plugin's component cache 
     633        // unfortunately there is no way for this to work for "all users" installs 
     634         
     635        NSString *path = [@"~/Library/Preferences/com.apple.quicktime.plugin.preferences.plist" stringByExpandingTildeInPath]; 
     636        [[NSFileManager defaultManager] removeItemAtPath:path error:nil]; 
     637} 
     638 
    630639- (void)install:(id)sender 
    631640{ 
     
    676685         
    677686        [self lsRegisterApps]; 
     687        [self deletePluginCache]; 
    678688         
    679689        [self performSelectorOnMainThread:@selector(installComplete:) withObject:nil waitUntilDone:NO];