| 1 | //go:build windows |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import ( |
| 6 | "os" |
| 7 | |
| 8 | "reasonix/internal/appidentity" |
| 9 | "reasonix/internal/installlayout" |
| 10 | ) |
| 11 | |
| 12 | func repairDesktopIconIntegration() error { |
| 13 | executable, err := os.Executable() |
| 14 | if err != nil { |
| 15 | return err |
| 16 | } |
| 17 | root, err := installlayout.ResolveInstallRoot(executable) |
| 18 | if err != nil { |
| 19 | return err |
| 20 | } |
| 21 | return appidentity.RepairOwnedShortcuts(root) |
| 22 | } |
| 23 |