Back to Multipass

Use A Different Terminal From The System Icon

docs/how-to-guides/customise-multipass/use-a-different-terminal-from-the-system-icon.md

2018.12.11.6 KB
Original Source

(how-to-guides-customise-multipass-use-a-different-terminal-from-the-system-icon)=

Use a different terminal from the system icon

See also: How to install Multipass, shell.

If you want, you can change the terminal application used by the Multipass system menu icon.

{note}
Currently available only for macOS

To do so, you need to tell macOS which terminal to use for the .command file type. This document presents two ways of achieving this.

Using duti

duti is a small helper application that can modify the default application preferences. It's also available from brew.

Find out your preferred terminal's bundle identifier using mdls:

console
mdls /Applications/iTerm.app/ | grep BundleIdentifier
kMDItemCFBundleIdentifier              = "com.googlecode.iterm2"

And make it the default for script files using duti:

console
duti -s com.googlecode.iTerm2 com.apple.terminal.shell-script shell

Using Finder

Create an empty file with a .command extension and find it in Finder. Select the file and press ⌘I. You should be presented with an information pane like this:

{figure}
   :width: 289px
   :alt: file.command info
<!-- Original image on the Asset Manager ![file.command info|289x366](https://assets.ubuntu.com/v1/1ce425a9-multipass-file-command-info.png) -->

Expand the "Open with:" section, select your preferred terminal application and click on "Change All...".