TagSpaces is an offline, open source, document manager with tagging support
feature: enable opening folders from command line as parameter
Ilian Sapundshievd4f4847c6d1c
diff --git a/app/containers/Root.tsx b/app/containers/Root.tsxindex e89b222e3..ba3d0bed5 100644--- a/app/containers/Root.tsx+++ b/app/containers/Root.tsx@@ -66,12 +66,17 @@ function onBeforeLift(store) {}const openParam = getURLParameter('open');+ const locationIdParam = getURLParameter('lid');if (openParam && openParam.length > 1) {// dispatch toggle full widthsetTimeout(() => {getAllPropertiesPromise(decodeURIComponent(openParam)).then((fsEntry: FileSystemEntry) => {- store.dispatch(AppActions.openFsEntry(fsEntry));+ if (fsEntry.isFile) {+ store.dispatch(AppActions.openFsEntry(fsEntry));+ } else {+ store.dispatch(AppActions.loadDirectoryContent(fsEntry.path));+ }return true;}).catch(error =>