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: {
|
|
|
|
'path': `${Setting.value('profileDir')}`,
|
|
|
|
},
|
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;
|