Skip to content
Jean-François Boismenu edited this page Oct 6, 2015 · 11 revisions

Here you will find everything you need to know about the Shotgun Desktop startup sequence.

Note that this framework is not meant to be imported and used into your apps. Therefore, we reserve the right to make any changes in the interface of the framework.

Configuration

The config.ini file allows to tweak login behaviour as well as how the browser integration is configured. This is entirely optional and in most cases you shouldn't need to edit this.

Here's a config.ini sample with documentation about what each setting means.

# Login related settings
[Login]
# Default login to display in the login dialog for a user who never logged into the Shotgun Desktop. Defaults to the current users's OS login.
default_login=some_name
# Default site to display in the login dialog for a user who never logged into the Shotgun Desktop. Defaults to https://mystudio.shotgunstudio.com
default_site=https://jf.shotgunstudio.com
# Proxy server to use when connecting to Shotgun. You can optionally specify a username and password to the proxy using the username:password@address syntax.
http_proxy: 127.0.0.1

# Browser integration related settings
[BrowserIntegration]
# Power-user only. When set to 1, this allows the browser integration to output text to the Shotgun Desktop's log file. Defaults to 0.
debug: 0
# When set to 0, this setting disables the browser integration. Defaults to 1.
enabled: 1
# Port to listen for requests from the browser. Defaults to 9000.
port: 9001
# List of sites that can connect to this server. Defaults to *.shotgunstudio.com.
whitelist: *.shotgunstudio.com

The file is searched for in multiple locations and in the following order:

  1. Inside the user folder
  2. An environment variable named SGTK_DESKTOP_CONFIG_LOCATION

If you wish to store your configuration in the user directory, here's the location for each supported platform:

Windows: %APPDATA$\Shotgun\desktop\config\config.ini
MacOSX: ~/Library/Caches/Shotgun/desktop/config/config.ini
Linux: ~/.shotgun/desktop/config/config.ini

If you wish to store your configuration file somewhere else on your computer or on your network, you can set the SGTK_DESKTOP_CONFIG_LOCATION environment variable and then launch the Shotgun Desktop.

Note that you can also store the config.ini file inside in installation directory, but that this location is deprecated and you should use the two others means described above. Specifically on MacOS, adding a file inside the installation directory invalidates the package's signature, which will result in a prompt from the firewall when the Shotgun Desktop launches since MacOS can't certify that the package hasn't been altered by a malicious program.

If you still wish to put your configuration file in the user directory, here's the location for each supported platform (assuming the Shotgun Desktop has been installed at the default location):

Windows: C:\Program Files\Shotgun\config.ini
MacOSX: /Applications/Shotgun.app/Content/Resources/config.ini
Linux: /opt/Shotgun/config.ini
Clone this wiki locally