Sign in Join
FPDoc Onlineexperiment

ProgramDirectoryWithBundle function

In unit FileUtil

Gets the directory for the current executable without the macOS bundle post-fix.

Declaration

pascal
function ProgramDirectoryWithBundle: string

Description

ProgramDirectoryWithBundle is a String function used to get the path to current executable on the macOS operating system. It calls ProgramDirectory to get the return value, and removes the bundle post-fix ('.app/Contents/MacOS') from the return value. The return value is not changed if it does not contain the bundle post-fix.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.