Skip to content

Commit

Permalink
version 1.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Wardle committed Sep 25, 2018
1 parent 4ebf42d commit 4007e24
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion launchDaemon/launchDaemon/XPCListener.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ @implementation ExtendedNSXPCConnection

@implementation XPCListener

@synthesize mainApp;
@synthesize listener;
@synthesize loginItem;

Expand Down Expand Up @@ -179,7 +180,7 @@ -(BOOL)listener:(NSXPCListener *)listener shouldAcceptNewConnection:(NSXPCConnec

//login item
// save connection and notify that new client has connected
if(YES == [path hasSuffix:@"LuLu Helper"])
if(YES == [path hasSuffix:LOGIN_ITEM_NAME])
{
//save
self.loginItem = newConnection;
Expand Down
8 changes: 4 additions & 4 deletions shared/utilities.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// file: Utilities.h
// file: utilities.h
// project: lulu (shared)
// description: various helper/utility functions (header)
//
Expand All @@ -19,7 +19,7 @@
void initCrashReporting(void);

//give path to app
// ->get full path to its binary
// get full path to its binary
NSString* getAppBinary(NSString* appPath);

//get path to (main) app
Expand Down Expand Up @@ -56,11 +56,11 @@ NSBundle* findAppBundle(NSString* binaryPath);
NSString* getProcessPath(pid_t pid);

//get process name
// ->either via app bundle, or path
// either via app bundle, or path
NSString* getProcessName(NSString* path);

//given a process path and user
// ->return array of all matching pids
// return array of all matching pids
NSMutableArray* getProcessIDs(NSString* processPath, int userID);

//given a pid, get its parent (ppid)
Expand Down
10 changes: 5 additions & 5 deletions shared/utilities.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// file: Utilities.m
// file: utilities.m
// project: lulu (shared)
// description: various helper/utility functions
//
Expand Down Expand Up @@ -86,7 +86,7 @@ void initCrashReporting()
}

//get app's version
// ->extracted from Info.plist
// extracted from Info.plist
NSString* getAppVersion()
{
//read and return 'CFBundleVersion' from bundle
Expand Down Expand Up @@ -448,7 +448,7 @@ BOOL setFilePermissions(NSString* file, int permissions, BOOL recursive)
}

//always set permissions on passed in file (or top-level directory)
// ->note: recursive enumerator skips root directory, so execute this always
// note: recursive enumerator skips root directory, so execute this always
if(YES != [[NSFileManager defaultManager] setAttributes:filePermissions ofItemAtPath:file error:NULL])
{
//err msg
Expand Down Expand Up @@ -761,7 +761,7 @@ void toggleMenu(NSMenu* menu, BOOL shouldEnable)
}

//process is not an app or couldn't get icon
// ->try to get it via shared workspace
// try to get it via shared workspace
if( (nil == appBundle) ||
(nil == icon) )
{
Expand Down Expand Up @@ -847,7 +847,7 @@ void wait4kext(NSString* kext)
void makeModal(NSWindowController* windowController)
{
//wait up to 1 second window to be non-nil
// ->then make modal
// then make modal
for(int i=0; i<20; i++)
{
//can make it modal once we have a window
Expand Down

0 comments on commit 4007e24

Please sign in to comment.