콘텐츠로 이동

executableDir

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/path · Kind Function

import { executableDir } from '@netwiv/api/path';

Returns the path to the user’s executable directory.

  • Linux: Resolves to $XDG_BIN_HOME/../bin or $XDG_DATA_HOME/../bin or $HOME/.local/bin.
  • macOS: Not supported.
  • Windows: Not supported.
function executableDir(): Promise<string>
import { executableDir } from '@netwiv/api/path';
const executableDirPath = await executableDir();

Upstream since 1.0.0


Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.