Changeset 2af1f68


Ignore:
Timestamp:
May 2, 2019 10:40:18 PM (13 months ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
811d1cc
Parents:
56eb11bc
Message:

Mac OSX Launcher: Misc metadata updates for the StartupItemApp? sub-bundle.

Location:
launchers/macosx/StartupItemApp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/StartupItemApp/AppDelegate.swift

    r56eb11bc r2af1f68  
    2525  func applicationDidFinishLaunching(_ aNotification: Notification) {
    2626   
    27     let mainAppIdentifier = "net.i2p.bootstrap-macosx.I2PLauncher"
    2827    let runningApps = NSWorkspace.shared.runningApplications
    29     let isRunning = !runningApps.filter { $0.bundleIdentifier == mainAppIdentifier }.isEmpty
     28    let isRunning = !runningApps.filter { $0.bundleIdentifier == Identifiers.mainApplicationBundleId }.isEmpty
    3029   
    3130    if !isRunning {
     
    3332                                                          selector: #selector(self.terminate),
    3433                                                          name: .killLauncher,
    35                                                           object: mainAppIdentifier)
     34                                                          object: Identifiers.mainApplicationBundleId)
    3635     
    3736      let path = Bundle.main.bundlePath as NSString
  • launchers/macosx/StartupItemApp/Info.plist

    r56eb11bc r2af1f68  
    2121        <key>CFBundleVersion</key>
    2222        <string>1</string>
     23        <key>LSBackgroundOnly</key>
     24        <true/>
    2325        <key>LSMinimumSystemVersion</key>
    2426        <string>$(MACOSX_DEPLOYMENT_TARGET)</string>
     
    2931        <key>NSPrincipalClass</key>
    3032        <string>NSApplication</string>
    31         <key>LSBackgroundOnly</key>
    32         <true/>
    3333</dict>
    3434</plist>
  • launchers/macosx/StartupItemApp/StartupItemApp.entitlements

    r56eb11bc r2af1f68  
    77        <key>com.apple.security.application-groups</key>
    88        <array>
    9                 <string>$(TeamIdentifierPrefix)</string>
     9                <string>$(TeamIdentifierPrefix).i2p</string>
    1010        </array>
    1111        <key>com.apple.security.files.user-selected.read-only</key>
Note: See TracChangeset for help on using the changeset viewer.