2022-09-01 12:44:33 +02:00
|
|
|
import { DefaultPluginsInfo } from '../PluginService';
|
|
|
|
import Setting from '../../../models/Setting';
|
2024-02-09 00:48:39 +02:00
|
|
|
import shim from '../../../shim';
|
2022-09-01 12:44:33 +02:00
|
|
|
|
|
|
|
const getDefaultPluginsInfo = (): DefaultPluginsInfo => {
|
|
|
|
const defaultPlugins = {
|
|
|
|
'io.github.jackgruber.backup': {
|
|
|
|
settings: {
|
2024-02-22 23:30:21 +02:00
|
|
|
'path': `${Setting.value('homeDir')}`,
|
|
|
|
'createSubfolderPerProfile': true,
|
2022-09-01 12:44:33 +02:00
|
|
|
},
|
2024-02-09 00:48:39 +02:00
|
|
|
|
|
|
|
// Joplin Portable is more likely to run on a device with low write speeds
|
|
|
|
// and memory. Because Simple Backup has auto-backup enabled by default,
|
|
|
|
// we disable it in Joplin Portable.
|
|
|
|
enabled: !shim.isPortable(),
|
2022-09-01 12:44:33 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
return defaultPlugins;
|
|
|
|
};
|
|
|
|
export default getDefaultPluginsInfo;
|