- Qt Creator Manual
- Desktop Device Run Settings
- Qt Creator Manual 13.0.0-beta2

Reference

# Desktop Device Run Settings

Specify settings for running applications on the Run device that you select for a kit in Projects > Build & Run > Run > Run Settings.

## Working Directory

You can specify command-line arguments to be passed to the executable and the working directory to use. The working directory defaults to the directory of the build result.

Select Add Deploy Step > CMake Install to add the install option. It runs installation without using the generated build system or the native build tool. Qt Creator automatically adds the value of the Working directory field as the installation directory in the `--install` signature.

## Run in Terminal

For console applications, check the Run in terminal check box. To specify the terminal to use on Linux and macOS, select Preferences > Environment > System. To use an internal terminal, select Preferences > Terminal > Use internal terminal.

## Linker Libraries

When building an application, Qt Creator creates a list of directories where the linker will look for libraries that the application links to. By default, the linked libraries are made visible to the executable that Qt Creator is attempting to run. Usually, you should disable this option only if it causes unwanted side-effects or if you use deployment steps, such as `make install`, and want to make sure that the deployed application will find the libraries also when it is run without Qt Creator.

To disable library linking for the current project, deselect the Add build library search path to PATH check box. To disable library linking for all projects, select Preferences > Build & Run, and then deselect the Add linker library search paths to run environment check box.

## macOS Options

The Use debug version of frameworks (DYLD_IMAGE_SUFFIX=_debug) option (only available on macOS) enables you to debug (for example, step into) linked frameworks, such as the Qt framework itself. You do not need this option for debugging your application code.

## Linux Options

On Linux, select the Run as root user check box to run the application with root user permissions.

See also Configure projects for running, Specify a custom executable to run, and Specify the run environment.

Reference