Skip to content

Commit 8982923

Browse files
committed
fix: only filename works, path has no effect
1 parent b3f463b commit 8982923

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

journald.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"path"
1212
"strings"
1313

14-
"github.com/adrg/xdg"
1514
"github.com/spf13/cobra"
1615
)
1716

@@ -131,10 +130,7 @@ Make sure to move the file you just created to another location immediately!
131130
title = "Select File Location"
132131
message = fmt.Sprintf("Select a new location for the file:\n\n%s", filePath)
133132

134-
// open the file selector in the "overview" folder with all other drives
135-
suggestedPath := path.Join(xdg.Home, "google", path.Base(filePath))
136-
fmt.Println(suggestedPath)
137-
newFilePath, err := openFileSelector(title, message, suggestedPath)
133+
newFilePath, err := openFileSelector(title, message, fileName)
138134
if err != nil {
139135
if strings.Contains(err.Error(), "exit status 1") {
140136
fmt.Println("File selector was cancelled, skipping...")

0 commit comments

Comments
 (0)