AvogadroLibs 2.1.0-20261111
Loading...
Searching...
No Matches
PackageManager::CommandLine Struct Reference

#include <packagemanager.h>

Public Member Functions

bool applyEnvironment (QProcessEnvironment &environment) const

Public Attributes

QString program
 empty if no environment can run the command
QStringList prefixArgs
 arguments preceding the command's own
QString environmentBinDir
QString environmentPrefix

Detailed Description

How to launch a package command.

Member Function Documentation

◆ applyEnvironment()

bool applyEnvironment ( QProcessEnvironment & environment) const

Apply environmentBinDir and environmentPrefix to environment.

Returns
true if environment was modified.

Member Data Documentation

◆ environmentBinDir

QString environmentBinDir

Bin directory to prepend to PATH, empty when the launcher activates the environment itself ("pixi run"). Set when the command's script is run directly, so that a plugin shelling out to another program installed in its environment still finds it.

◆ environmentPrefix

QString environmentPrefix

Root of a conda-style environment, exported as CONDA_PREFIX. Empty unless the script is run directly from a pixi environment.


The documentation for this struct was generated from the following file: