# Deployment

## Activating Mimiq

Activating a license can be done via the API:

```
mimiq://activate?key=[your license key]
```

Deactivation works via the same mechanism:

```
mimiq://deactivate
```

## Autostart Mimiq

By default, Mimiq launches when you log into your computer, but you can control whether Mimiq autostarts.

{% tabs %}
{% tab title="macOS" %}

1. In `Terminal.app`, tell Mimiq whether or not to autostart when you log into macOS.

#### Disable autostart

```sh
defaults write video.hedge.Mimiq.Mac launchAtLogin -bool false
```

#### Enable autostart

```sh
defaults write video.hedge.Mimiq.Mac launchAtLogin -bool true
```

2. Commit the setting in Mimiq.
   * If Mimiq has *already launched* (i.e. in the menu bar):
     1. Quit Mimiq
     2. Relaunch Mimiq.
     3. Restart your Mac.
   * If Mimiq *hasn't launched yet* (i.e. *not* present in the menu bar):
     1. Launch Mimiq.
     2. Quit-then-relaunch Mimiq.
     3. Restart your Mac.

Then, use this Terminal command to check Mimiq's current autostart setting:

```sh
defaults read video.hedge.Mimiq.Mac launchAtLogin
```

* `launchAtLogin = 0` - Mimiq will not autostart when you log into macOS.
* `launchAtLogin = 1` - Mimiq autostarts when you log into macOS.
  {% endtab %}

{% tab title="Windows" %}
Use PowerShell to add this Registry key – `Mimiq` – then set it to the path where Mimiq is installed (likely, `C:\Program Files\Mimiq\Mimiq.exe`).

```powershell
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "Mimiq" -Value "C:\Program Files\Mimiq\Mimiq.exe" -PropertyType STRING -Force
```

That results in this new Registry key:

`Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Mimiq`<br>

To disable autostart, remove the `Mimiq` Registry key:

```powershell
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "Mimiq"
```

{% endtab %}
{% endtabs %}

## Don't show the Mimiq UI

{% hint style="info" %}
Although this suppresses Mimiq from initially displaying the list of volumes and Workspaces after it launches, you can still view that list anytime by clicking the Mimiq icon in the menu bar (macOS) or System Tray (Windows).
{% endhint %}

{% tabs %}
{% tab title="macOS" %}

1. In `Terminal.app`, tell Mimiq whether or not to display the list of volumes and Workspaces after it launches.

#### Disable displaying the list of volumes and workspaces

```sh
defaults write video.hedge.Mimiq.Mac disableWindowPopup -bool true
```

#### Enable displaying the list of volumes and workspaces

```sh
defaults write video.hedge.Mimiq.Mac disableWindowPopup -bool false
```

2. Commit the setting in Mimiq.
   * If Mimiq has *already launched* (i.e. in the menu bar):
     1. Quit Mimiq
     2. Relaunch Mimiq.
     3. Restart your Mac.
   * If Mimiq *hasn't launched yet* (i.e. *not* in the menu bar):
     1. Launch Mimiq.
     2. Quit-then-relaunch Mimiq.
     3. Restart your Mac.

Then, you can use this Terminal command to check whether Mimiq will display its list of volumes and Workspaces after it launches:

```sh
defaults read video.hedge.Mimiq.Mac disableWindowPopup
```

* `disableWindowPopup = 1` - Mimiq will not display the list of volumes and Workspaces when you log into macOS, [even if Mimiq launches when you log in.](#autostart)
* `disableWindowPopup = 0` - Mimiq will display the list of volumes and Workspaces when you log into macOS.
  {% endtab %}

{% tab title="Windows" %}
Use PowerShell to add this Registry key – `StartupWindowPopupEnabled` – then set it to `0`.

```powershell
New-ItemProperty -Path "HKCU:\Software\Mimiq" -Name "StartupWindowPopupEnabled" -Value 0 -PropertyType DWORD -Force
```

Which results in this new Registry key:

`Computer\HKEY_CURRENT_USER\SOFTWARE\Mimiq\StartupWindowPopupEnabled`

You can then use Windows' Registry Editor to set `StartupWindowPopupEnabled` to:

* `0` - Mimiq will not display the list of volumes and Workspaces when you log into Windows, [even if Mimiq launches when you log in.](#autostart)
* `1` - Mimiq will display the list of volumes and Workspaces when you log into Window.

To remove the `StartupWindowPopupEnabled` Registry key:

```powershell
Remove-ItemProperty -Path "HKCU:\Software\Mimiq" -Name "StartupWindowPopupEnabled"
```

{% endtab %}
{% endtabs %}

## Suppress App Updates

{% hint style="info" %}
Although this suppresses Mimiq from displaying app updates after it launches, you can check for an update anytime by clicking the Mimiq icon in the menu bar (macOS) or System Tray (Windows).
{% endhint %}

{% tabs %}
{% tab title="macOS" %}

1. In `Terminal.app`, tell Mimiq whether or not to display app update notifications after it launches.

#### Disable app update notifications

```sh
defaults write video.hedge.Mimiq.Mac disableUpdateNotifications -bool true
```

#### Enable app update notifications

```sh
defaults write video.hedge.Mimiq.Mac disableUpdateNotifications -bool false
```

2. Commit the setting in Mimiq.
   * If Mimiq has *already launched* (i.e. in the menu bar):
     1. Quit Mimiq
     2. Relaunch Mimiq.
     3. Restart your Mac.
   * If Mimiq *hasn't launched yet* (i.e. *not* in the menu bar):
     1. Launch Mimiq.
     2. Quit-then-relaunch Mimiq.
     3. Restart your Mac.

Then, use this Terminal command to check whether Mimiq will display app update notifications after it launches.

```sh
defaults read video.hedge.Mimiq.Mac disableUpdateNotifications
```

* `disableUpdateNotifications = 1` - Mimiq will not display app update notifications when you log into macOS.
* `disableUpdateNotifications = 0` - Mimiq will display app update notifications when you log into macOS.
  {% endtab %}

{% tab title="Windows" %}
Use PowerShell to add this Registry key – `CheckForUpdatesOnStartupEnabled` – then set it to `0`.

```powershell
New-ItemProperty -Path "HKCU:\Software\Mimiq" -Name "CheckForUpdatesOnStartupEnabled" -Value 0 -PropertyType DWORD -Force
```

Which results in this new Registry key:

`Computer\HKEY_CURRENT_USER\SOFTWARE\Mimiq\CheckForUpdatesOnStartupEnabled`

You can then use Windows' Registry Editor to set `CheckForUpdatesOnStartupEnabled` to:

* `0` - Mimiq will not display app update notifications when you log into Windows.
* `1` - Mimiq will display app update notifications when you log into Windows.

To remove the `CheckForUpdatesOnStartupEnabled` Registry key:

```powershell
Remove-ItemProperty -Path "HKCU:\Software\Mimiq" -Name "CheckForUpdatesOnStartupEnabled"
```

{% endtab %}
{% endtabs %}

## Managing Workspaces

Full docs on Workspace Management can be found [here](https://docs.hedge.video/workspaces#local-vs.-shared-workspaces).
