Skip to content

Commit

Permalink
Update dock.go
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 4, 2023
1 parent bc1c63c commit b476c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/dock/dock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit b476c77

Please sign in to comment.