Skip to content

Commit b726886

Browse files
committed
Preserve working directory in startup shortcut
1 parent 2fd5e68 commit b726886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProxAllium.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Func GUI_AutoStart()
362362
Local $sStartupFolder = _WinAPI_ShellGetKnownFolderPath($FOLDERID_Startup)
363363
$sShortcutPath = $sStartupFolder & '\ProxAllium.lnk'
364364
If FileExists($sShortcutPath) Then $sShortcutPath = _TempFile($sStartupFolder, "ProxAllium_", '.lnk')
365-
$iReturn = FileCreateShortcut(@ScriptFullPath, $sShortcutPath)
365+
$iReturn = FileCreateShortcut(@ScriptFullPath, $sShortcutPath, @WorkingDir)
366366
If $iReturn = 0 Then
367367
MsgBox($MB_ICONERROR, "Cannot add to startup", "Failed to create a shortcut in the Startup folder!")
368368
Else

0 commit comments

Comments
 (0)