-
Notifications
You must be signed in to change notification settings - Fork 9
Documentation
Here you will find everything you need to know to configure the Shotgun Desktop's startup sequence. This sequence can be configured using a file named config.ini
.
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.
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. Allows the browser integration to output text to the Shotgun Desktop's log file.
debug: 1
# 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:
- Inside the user folder
- 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 one 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