From b476c7700a5743cb74111c3718f0f55c1e2b8969 Mon Sep 17 00:00:00 2001 From: blacktop Date: Sun, 3 Sep 2023 19:54:46 -0600 Subject: [PATCH] Update dock.go --- internal/dock/dock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dock/dock.go b/internal/dock/dock.go index f48dcd5..e75bea5 100644 --- a/internal/dock/dock.go +++ b/internal/dock/dock.go @@ -150,7 +150,7 @@ func (p *Plist) AddApp(appPath string) error { TileType: "file-tile", TileData: TileData{ FileData: FileData{ - URLString: strings.Replace(fmt.Sprintf("file://%s/", appPath), " ", "%20", -1), + URLString: appPath, URLStringType: 0, }, FileLabel: fileNameWithoutExtTrimSuffix(appPath), @@ -174,7 +174,7 @@ func (p *Plist) AddOther(other database.Folder) error { DisplayAs: int(other.Display), ShowAs: int(other.View), FileData: FileData{ - URLString: strings.Replace(fmt.Sprintf("file://%s/", other.Path), " ", "%20", -1), + URLString: other.Path, URLStringType: 0, }, FileLabel: fileNameWithoutExtTrimSuffix(other.Path),