@lvce-editor/main-process 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mainProcessMain.js +9 -1
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -4842,8 +4842,16 @@ const handleSecondInstance = async (event, commandLine, workingDirectory, additi
|
|
|
4842
4842
|
await handleReady(parsedArgs, workingDirectory);
|
|
4843
4843
|
};
|
|
4844
4844
|
|
|
4845
|
+
const normalizePath = fullPath => {
|
|
4846
|
+
if (fullPath.startsWith('file://')) {
|
|
4847
|
+
return fileURLToPath(fullPath);
|
|
4848
|
+
}
|
|
4849
|
+
return fullPath;
|
|
4850
|
+
};
|
|
4851
|
+
|
|
4845
4852
|
const showItemInFolder = fullPath => {
|
|
4846
|
-
|
|
4853
|
+
const normalized = normalizePath(fullPath);
|
|
4854
|
+
shell.showItemInFolder(normalized);
|
|
4847
4855
|
};
|
|
4848
4856
|
const openPath = async path => {
|
|
4849
4857
|
// TODO handle error
|