mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-16 01:17:44 -06:00
Fixes #1383. Refs #949. ## Summary Allows the user to choose to launch the app on startup, which toggles on a login item which launches the app. ## Screenshots <img width="350" alt="Screen Shot 2021-01-18 at 13 03 28" src="https://user-images.githubusercontent.com/74188/104962618-aa753180-598d-11eb-8711-f3b45ded80ba.png"><img width="350" alt="Screen Shot 2021-01-18 at 13 03 23" src="https://user-images.githubusercontent.com/74188/104962622-aba65e80-598d-11eb-8c76-e6ec61fe320a.png"> ## Any other notes - Effectively this setting turns on whether to launch this Launcher app on login, and then the Launcher app launches the app whenever it's started, before terminating itself. - Routes through the Mac Bridge to call `SMLoginItemSetEnabled` which appears to have no public API counterpart to get the current status. Various places point to `SMJobIsEnabled` which doesn't appear in any headers. - Thanks @rudyrichter for the pointer on how to get this working.
36 lines
1.9 KiB
XML
36 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
|
<dependencies>
|
|
<deployment identifier="macosx"/>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
|
|
</dependencies>
|
|
<objects>
|
|
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
|
<connections>
|
|
<outlet property="delegate" destination="9Cp-Qm-ihR" id="gPm-8J-6XA"/>
|
|
</connections>
|
|
</customObject>
|
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
|
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
|
|
<menu title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
|
|
<items>
|
|
<menuItem title="Home Assistant Launcher" id="1Xt-HY-uBw">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
<menu key="submenu" title="Home Assistant Launcher" systemMenu="apple" id="uQy-DD-JDr">
|
|
<items>
|
|
<menuItem title="Quit" keyEquivalent="q" id="4sb-4s-VLi">
|
|
<connections>
|
|
<action selector="terminate:" target="-1" id="Te7-pn-YzF"/>
|
|
</connections>
|
|
</menuItem>
|
|
</items>
|
|
</menu>
|
|
</menuItem>
|
|
</items>
|
|
<point key="canvasLocation" x="-27" y="120"/>
|
|
</menu>
|
|
<customObject id="9Cp-Qm-ihR" customClass="LauncherAppDelegate" customModule="Home_Assistant_Launcher" customModuleProvider="target"/>
|
|
</objects>
|
|
</document>
|