Show
Ignore:
Timestamp:
07/29/08 16:35:01 (4 months ago)
Author:
astrange
Message:

Delete progress indicators from the prefpane, they're ugly and pointless.
Get rid of alert panels in the update checker and use IPC to show them in the prefpane instead.
Fix the update checker never cleaning up its locks.
Synchronize user defaults more often since it seems necessary.
Delete code for not running too often in the update checker, it's a duplicate of the same more-maintained code in Perian.

This requires merging the nib into release branch again...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Update Checker Sources/main.m

    r913 r917  
    1313#define lockPath "/tmp/PerianUpdateLock" 
    1414 
     15static int fp = -1; 
     16 
     17static void deleteLock() 
     18{ 
     19        close(fp); 
     20        unlink(lockPath); 
     21} 
     22 
    1523int main(int argc, char *argv[]) 
    1624{ 
    17         int fp = open(lockPath, O_CREAT | O_EXCL); 
     25        fp = open(lockPath, O_CREAT | O_EXCL); 
    1826        if(fp == -1) 
    1927        { 
     
    3139        if(fp == -1) 
    3240                return 0; 
     41         
     42        atexit(deleteLock); 
    3343 
    3444        int ret = NSApplicationMain(argc,  (const char **) argv); 
    3545         
    36     close(fp); 
    37         unlink(lockPath); 
    38          
    3946        return ret; 
    4047}