Fix repost folder routing and Windows folder opening

This commit is contained in:
asdfghjkkly committed 2026-07-05 05:41:36 -04:00
1 parent 52ffa5ba17
commit e400df6ea7
2 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -11,6 +11,7 @@ import (
)
func OpenFolderInExplorer(path string) error {
os.WriteFile(filepath.Join(os.TempDir(), "openfolder.txt"), []byte(path), 0644)
info, err := os.Stat(path)
if err != nil {
return err
@@ -23,7 +24,7 @@ func OpenFolderInExplorer(path string) error {
switch runtime.GOOS {
case "windows":
cmd = exec.Command("explorer", path)
cmd = exec.Command("cmd", "/C", "start", "", path)
case "darwin":
cmd = exec.Command("open", path)
case "linux":