@@ -15,18 +15,18 @@ static void Main(string[] args)
15
15
var arguments = ( string ) localSettings . Values [ "Arguments" ] ;
16
16
if ( ! string . IsNullOrWhiteSpace ( arguments ) )
17
17
{
18
- if ( arguments . Equals ( "DetectUserPaths " ) )
18
+ if ( arguments . Equals ( "StartupTasks " ) )
19
19
{
20
+ // Detect User Paths
20
21
ApplicationData . Current . LocalSettings . Values [ "DetectedDesktopLocation" ] = Microsoft . Win32 . Registry . GetValue ( @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" , "Desktop" , null ) ;
21
22
ApplicationData . Current . LocalSettings . Values [ "DetectedDownloadsLocation" ] = Microsoft . Win32 . Registry . GetValue ( @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" , "{374DE290-123F-4565-9164-39C4925E467B}" , null ) ;
22
23
ApplicationData . Current . LocalSettings . Values [ "DetectedDocumentsLocation" ] = Microsoft . Win32 . Registry . GetValue ( @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" , "Personal" , null ) ;
23
24
ApplicationData . Current . LocalSettings . Values [ "DetectedPicturesLocation" ] = Microsoft . Win32 . Registry . GetValue ( @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" , "My Pictures" , null ) ;
24
25
ApplicationData . Current . LocalSettings . Values [ "DetectedMusicLocation" ] = Microsoft . Win32 . Registry . GetValue ( @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" , "My Music" , null ) ;
25
26
ApplicationData . Current . LocalSettings . Values [ "DetectedVideosLocation" ] = Microsoft . Win32 . Registry . GetValue ( @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" , "My Video" , null ) ;
26
27
ApplicationData . Current . LocalSettings . Values [ "DetectedOneDriveLocation" ] = Microsoft . Win32 . Registry . GetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\OneDrive" , "UserFolder" , null ) ;
27
- }
28
- else if ( arguments . Equals ( "CheckQuickLookAvailability" ) )
29
- {
28
+
29
+ // Check QuickLook Availability
30
30
QuickLook . CheckQuickLookAvailability ( localSettings ) ;
31
31
}
32
32
else if ( arguments . Equals ( "ToggleQuickLook" ) )
0 commit comments