1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/ElectronClient/commands/openProfileDirectory.ts

18 lines
471 B
TypeScript

import { CommandRuntime, CommandDeclaration } from '../lib/services/CommandService';
import { _ } from 'lib/locale';
import bridge from '../services/bridge';
import Setting from 'lib/models/Setting';
export const declaration:CommandDeclaration = {
name: 'openProfileDirectory',
label: () => _('Open profile directory'),
};
export const runtime = ():CommandRuntime => {
return {
execute: async () => {
bridge().openItem(Setting.value('profileDir'));
},
};
};