Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: opening directory in file manager on Windows

Ilian Sapundshievfb8c15e65734
diff --git a/app/services/electron-io.ts b/app/services/electron-io.ts
index b9c6c05f5..f973ee809 100644
--- a/app/services/electron-io.ts
+++ b/app/services/electron-io.ts
@@ -809,9 +809,13 @@ export default class ElectronIO {
});
openDirectory = (dirPath: string): void => {
- this.electron.shell.showItemInFolder(
- dirPath + AppConfig.dirSeparator + '.'
- );
+ if (AppConfig.isWin) {
+ this.electron.shell.showItemInFolder(dirPath);
+ } else {
+ this.electron.shell.showItemInFolder(
+ dirPath + AppConfig.dirSeparator + '.'
+ );
+ }
};
showInFileManager = (filePath: string): void => {