Skip to content

Commit 79086e6

Browse files
committed
Some more tweaks
1 parent 7276cb8 commit 79086e6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

lib/shortcuts.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ function create_startmenu_shortcuts($manifest, $dir, $global, $arch) {
2020
}
2121

2222
function shortcut_folder($global) {
23-
$directory = 'startmenu'
24-
if ($global) { $directory = "common$directory" }
25-
return Convert-Path $(ensure [System.IO.Path]::Combine([Environment]::GetFolderPath($directory), 'Programs', 'Scoop Apps'))
23+
if ($global) {
24+
$startmenu = 'CommonStartMenu'
25+
} else {
26+
$startmenu = 'StartMenu'
27+
}
28+
return Convert-Path $(ensure [System.IO.Path]::Combine([Environment]::GetFolderPath($startmenu), 'Programs', 'Scoop Apps'))
2629
}
2730

2831
function startmenu_shortcut([System.IO.FileInfo] $target, $shortcutName, $arguments, [System.IO.FileInfo]$icon, $global) {

0 commit comments

Comments
 (0)