TagSpaces is an offline, open source, document manager with tagging support
feature: added icloud folder for macs as location
Ilian Sapundshiev5d5e081675c8
diff --git a/app/locales/en/core.json b/app/locales/en/core.jsonindex 95d465c53..5058a1cc0 100644--- a/app/locales/en/core.json+++ b/app/locales/en/core.json@@ -519,6 +519,7 @@"musicFolder": "Music","picturesFolder": "Pictures","videosFolder": "Videos",+ "icloudFolder": "iCloud","startImportButton": "Import","startExportButton": "Export","extractGeoCoordinates": "Extract geo-coordinates from files as tags",diff --git a/app/main.dev.ts b/app/main.dev.tsindex 93d1519f2..d4369bd45 100644--- a/app/main.dev.ts+++ b/app/main.dev.ts@@ -550,6 +550,10 @@ app.on('ready', async () => {picturesFolder: app.getPath('pictures'),videosFolder: app.getPath('videos')};+ if (isMac) {+ event.returnValue.iCloudFolder =+ app.getPath('home') + '/Library/Mobile Documents/com~apple~CloudDocs';+ }});ipcMain.on('get-user-home-path', event => {diff --git a/app/reducers/locations.ts b/app/reducers/locations.tsindex 1a9907d23..6f3ca4ee8 100644--- a/app/reducers/locations.ts+++ b/app/reducers/locations.ts@@ -156,7 +156,7 @@ export const actions = {type: locationType.TYPE_LOCAL,name: i18n.t(key),path: devicePaths[key],- isDefault: AppConfig.isWeb && devicePaths[key] === '/files/', // Used for the web ts demo+ isDefault: false, // AppConfig.isWeb && devicePaths[key] === '/files/', // Used for the web ts demoisReadOnly: false,persistIndex: false},