-
Notifications
You must be signed in to change notification settings - Fork 9
Documentation
The Desktop Startup framework implements the startup logic of the Shotgun Desktop. Its main function is to:
- initialize the browser integration
- log the user in
- download Toolkit
- configure the site configuration
- auto update itself and the site configuration when necessary
- launch the
tk-desktop
engine.
This is an internal Toolkit framework and therefore the interface it implements is subject to change. We advise that you do not use this framework in your projects.
Note, this requires the Shotgun Desktop app version
1.3.4
. If you are unsure of your application version, launch the Shotgun Desktop. Once you are logged in, click on the user icon at the bottom right and clickAbout...
. TheApp Version
should be1.3.4
or greater.
By default, Shotgun Desktop downloads tk-framework-desktopstartup
updates locally on the user's machine and uses it during the launch sequence of the application. When you launch the application, Toolkit automatically checks for updates to the framework. If an update is available, it will also download and install it automatically.
Alternately, you can configure the Shotgun Desktop to use a specific copy of the framework instead of using the local copy. This will disable the auto-update function and you will now be responsible for updating your the startup logic. In order to be kept up to date with updates, we suggest you subscribe to this page.
You will need to download updates from GitHub manually. The bundles can easily be downloaded from the Releases page and you can find more information about each official release here.
The only way to lock down the startup logic is to use an environment variable. By setting SGTK_DESKTOP_STARTUP_LOCATION
to the root folder of a copy of the framework, you will tell the Shotgun Desktop to use this copy of the code when starting up. Once the variable is set, you can launch the Shotgun Desktop and it will use this specific copy of the startup logic.
Note that as of this writing the
Startup Version
field in theAbout...
box will beUndefined
when locking the startup logic due to a technical limitation.
To revert back your changes, simply unset the environment variable and launch the Shotgun Desktop.