From e36a3b318a4cdf4e8dde00d1449d404fb6e2101a Mon Sep 17 00:00:00 2001 From: meeh Date: Sun, 10 Mar 2019 11:16:56 +0000 Subject: [PATCH] Mac OSX Launcher: * Fixed startup option so the launcher can start at OSX login/bootup. * Added I2P Browser to the list of "firefox" browsers to detect. * Changed hardcoded path lookup to native "registry" lookup for firefox application. * Made the advanced preferences table editable by the user. * Cleanup of old and/or unused code. * Bugfixes. --- launchers/macosx/AppDelegate.h | 1 - launchers/macosx/Changes.md | 17 ++ .../I2PLauncher/Base.lproj/UserInterfaces.xib | 52 +++++- .../macosx/I2PLauncher/Preferences.storyboard | 17 +- .../I2PLauncher/SwiftMainDelegate.swift | 26 +++ .../I2PLauncher/Utils/Preferences.swift | 2 +- .../macosx/I2PLauncher/Utils/Startup.swift | 156 +++++++++++------- .../Utils/browser/FirefoxManager.swift | 29 +++- .../RouterProcessStatus+ObjectiveC.swift | 10 -- .../userinterface/RouterStatusView.swift | 3 - .../userinterface/StatusBarController.swift | 3 + .../PreferencesViewController+TableView.swift | 18 +- .../PreferencesViewController.swift | 40 ++++- launchers/macosx/SBridge.h | 4 - launchers/macosx/SBridge.mm | 148 ----------------- launchers/macosx/main.mm | 26 --- 16 files changed, 270 insertions(+), 282 deletions(-) create mode 100644 launchers/macosx/Changes.md diff --git a/launchers/macosx/AppDelegate.h b/launchers/macosx/AppDelegate.h index 171c6b9d3..4088f0bf5 100644 --- a/launchers/macosx/AppDelegate.h +++ b/launchers/macosx/AppDelegate.h @@ -100,7 +100,6 @@ inline void sendUserNotification(NSString* title, NSString* informativeText, boo - (void) awakeFromNib; - (void) applicationDidFinishLaunching:(NSNotification *)aNotification; - (void) applicationWillTerminate:(NSNotification *)aNotification; -- (void) setApplicationDefaultPreferences; - (AppDelegate *) initWithArgc:(int)argc argv:(const char **)argv; - (BOOL) userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification; diff --git a/launchers/macosx/Changes.md b/launchers/macosx/Changes.md new file mode 100644 index 000000000..5e7c8f4bc --- /dev/null +++ b/launchers/macosx/Changes.md @@ -0,0 +1,17 @@ +# Change Log + +## 0.9.38 + +* Initial alpha/beta ish. +* Preferences dialog (unfinished). +* Firefox detection. + +## 0.9.39 + +* Fixed startup option so the launcher can start at OSX login/bootup. +* Added I2P Browser to the list of "firefox" browsers to detect. +* Changed hardcoded path lookup to native "registry" lookup for firefox application. +* Made the advanced preferences table editable by the user. +* Cleanup of old and/or unused code. +* Bugfixes. + diff --git a/launchers/macosx/I2PLauncher/Base.lproj/UserInterfaces.xib b/launchers/macosx/I2PLauncher/Base.lproj/UserInterfaces.xib index 223337439..d5d200a06 100644 --- a/launchers/macosx/I2PLauncher/Base.lproj/UserInterfaces.xib +++ b/launchers/macosx/I2PLauncher/Base.lproj/UserInterfaces.xib @@ -1,8 +1,8 @@ - + - + @@ -37,5 +37,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/launchers/macosx/I2PLauncher/Preferences.storyboard b/launchers/macosx/I2PLauncher/Preferences.storyboard index 836b9144c..49de4db2e 100644 --- a/launchers/macosx/I2PLauncher/Preferences.storyboard +++ b/launchers/macosx/I2PLauncher/Preferences.storyboard @@ -67,7 +67,7 @@