tray_icon_file: File name of the tray icon in the build

View source: R/build-templates.R

tray_icon_fileR Documentation

File name of the tray icon in the build

Description

copy_brand_assets() copies tray.icon into ⁠assets/⁠ under this name, and main.js loads it from there. The file keeps its own name unless that is the name of the app icon's copy (see icon_asset_path()), ignoring case. Then it gets a ⁠tray-⁠ prefix, so that neither copy replaces the other: every platform's build takes its icon from the app icon's copy.

Usage

tray_icon_file(tray_icon, icon = NULL)

Arguments

tray_icon

Character. Path to the tray icon.

icon

Character path to the app icon, or NULL.

Value

Character. The file name of the copy in ⁠assets/⁠.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.