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

+3 -3
View File
@@ -350,9 +350,9 @@ func (a *App) DownloadMediaWithMetadata(req DownloadMediaWithMetadataRequest) (D
}
username := req.Username
if item.AuthorUsername != "" {
username = item.AuthorUsername
}
if (req.Username == "bookmarks" || req.Username == "likes") && item.AuthorUsername != "" {
username = item.AuthorUsername
}
items[i] = backend.MediaItem{
URL: item.URL,
+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":