1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-desktop/commands/openProfileDirectory.ts

18 lines
499 B
TypeScript
Raw Normal View History

import { CommandRuntime, CommandDeclaration } from '@joplin/lib/services/CommandService';
import { _ } from '@joplin/lib/locale';
import bridge from '../services/bridge';
import Setting from '@joplin/lib/models/Setting';
export const declaration: CommandDeclaration = {
name: 'openProfileDirectory',
label: () => _('Open profile directory'),
};
export const runtime = (): CommandRuntime => {
return {
execute: async () => {
2020-11-25 16:40:25 +02:00
void bridge().openItem(Setting.value('profileDir'));
},
};
};