openPath
이 콘텐츠는 아직 번역되지 않았습니다.
Module @netwiv/api/plugins/opener · Kind Function
import { openPath } from '@netwiv/api/plugins/opener';Opens a path with the system’s default app, or the one specified with {@linkcode openWith}.
Signature
Section titled “Signature”function openPath(path: string, openWith?: string | undefined): Promise<void>Example
Section titled “Example”import { openPath } from '@netwiv/api/plugins/opener';
// opens a file using the default program:await openPath('/path/to/file');// opens a file using `vlc` command on Windows.await openPath('C:/path/to/file', 'vlc');Upstream since 2.0.0
Descriptions come from the pinned @tauri-apps/plugin-opener@2.5.5 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.