5.2. Launcher

5.2.1. Introduction

The Bauhaus Launcher handles clicks on the launcher-edit-icon icon in the dashboard issue view by opening a local copy of the file in an editor.

Bauhaus Launcher

Bauhaus Launcher

5.2.2. Installation

The Bauhaus Launcher is distributed as part of the Axivion Suite. See Installation for information on how to install the Axivion Suite.

When the Axivion Suite is installed, it automatically associates the launcher with the axivion: protocol scheme used for the launcher-edit-icon link in the dashboard.

The association is created for the users the Axivion Suite was installed for: an installation for all users associates the launcher for all users, while an installation for the current user associates it only for that user account.

5.2.2.1. Windows

If problems occur with the axivion: protocol scheme, run bauhaus_launcher.exe to re-register the protocol scheme handler. The association is created via the registry key HKEY_CLASSES_ROOT\axivion, which is written under HKEY_LOCAL_MACHINE for all users or under HKEY_CURRENT_USER for the current user account.

5.2.2.2. Linux

On Linux, run bauhaus_launcher to re-register the protocol scheme handler. This creates the FreeDesktop file /usr/local/share/applications/Axivion-Bauhaus.desktop (if possible), or $HOME/.local/share/applications/Axivion-Bauhaus.desktop (otherwise). It then runs update-desktop-database to update the mimeinfo.cache file.

To explicitly choose the installation location (instead of relying on permissions), run bauhaus_launcher --install=system or bauhaus_launcher --install=user. The same suffixes apply to --uninstall, which leaves the other registration intact.

5.2.2.3. macOS

On macOS, run bauhaus_launcher to re-register the protocol scheme handler. This registers the application bundle bin/BauhausLauncher.app within the installation with Launch Services and sets it as the default handler for the axivion: scheme.

5.2.2.4. Uninstall

To uninstall the protocol scheme handler, run the following command:

bauhaus_launcher --uninstall

On Windows, this occurs automatically when the Axivion Suite is uninstalled.

On macOS, Launch Services has no unregistration command; removing the installation directory is sufficient. If a leftover registration from an older installation still handles axivion: links, remove it manually:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -u /path/to/old/bin/BauhausLauncher.app

or run bauhaus_launcher --install from the installation that should handle the links.

5.2.2.5. Mozilla Firefox

If Mozilla Firefox does not use the protocol handler as expected, enter about:config in the browser’s address bar and add the following preferences (right-click > New > Boolean):

network.protocol-handler.expose.axivion = false
network.protocol-handler.external.axivion = true

5.2.3. Configuration

Clicking the launcher-edit-icon icon in the dashboard opens the Bauhaus Launcher configuration window:

Bauhaus Launcher Configuration Window

Bauhaus Launcher Configuration Window

For Local Path, select the local file that corresponds to the remote file name shown.

For Editor Command Line, specify the command that opens the editor.

If Automatically launch editor is selected, the launcher will start the editor directly without showing the configuration window.

Caution

Ensure the configuration is correct before enabling automatic launch. Once enabled, the configuration can only be changed by manually editing $HOME/.bauhaus/launcher.config.

Example command lines for Windows:

  • notepad.exe "%FILE%"

  • "C:Program FilesNotepad++notepad++.exe" "%FILE%" -n%LINE% -c%COLUMN%

  • devenv /Command "Edit.Goto %LINE%" "%FILE%"

  • code --goto "%FILE%":%LINE%:%COLUMN%

  • eclipse --launcher.openFile "%FILE%"+%LINE%

Example command lines for GNU/Linux:

  • xterm -e vi +$LINE "$FILE"

  • emacs +$LINE "$FILE"

  • gedit +$LINE "$FILE"

  • code --goto "$FILE":$LINE:$COLUMN

  • eclipse --launcher.openFile "$FILE"+$LINE

Example command lines for macOS:

  • open "vscode://file/$FILE:$LINE:$COLUMN"

  • open -a TextEdit "$FILE"

  • bbedit +$LINE "$FILE"

Caution

The launcher does not automatically open a terminal to run the command. When using a non-graphical editor, ensure the command opens a new terminal. If a graphical editor does not open as expected, run the command in a terminal to view any error messages.