Skip to content

Allow administrators to configure the Posit Assistant installation path #18687

Closed

Description

@gtritchie

Current behavior

An administrator who wants Posit Assistant available to every user of an RStudio Server node has exactly one supported location for it: pai/bin under the XDG system configuration directory -- /etc/rstudio/pai/bin on Linux and macOS, C:/ProgramData/rstudio/pai/bin on Windows.

Sites that keep shared software somewhere else -- /opt, a read-only NFS mount, or a versioned deployment tree -- have no supported way to point RStudio at it. RSTUDIO_POSIT_AI_PATH can do it, but it is a per-process environment variable meant for development and testing, not a deployment mechanism.

Proposal

Add a posit-assistant-path session option (set in rsession.conf) that names the directory holding the administrator-managed installation.

When the option is set it replaces the XDG system configuration location in the search order rather than adding another location to it, so the order becomes:

  1. RSTUDIO_POSIT_AI_PATH, for development and testing
  2. The per-user installation under the XDG data directory
  3. posit-assistant-path when set, otherwise <XDG system config dir>/pai/bin

If the option is set but the directory does not hold a valid installation, RStudio logs a warning and reports Posit Assistant as not installed. It does not fall back to /etc/rstudio/pai/bin, since that would hide the misconfiguration.

An installation found through this option is treated the same as one under /etc/rstudio: RStudio reads it but never writes to it, and refuses to uninstall it.

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions