File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ static void Main(string[] args)
1212 // see https://aka.ms/applicationconfiguration.
1313 ApplicationConfiguration . Initialize ( ) ;
1414
15+ if ( ! Directory . Exists ( Utils . GetWorkingDir ( ) ) )
16+ {
17+ Directory . CreateDirectory ( Utils . GetWorkingDir ( ) ) ;
18+ }
19+ Directory . SetCurrentDirectory ( Utils . GetWorkingDir ( ) ) ;
20+
1521 bool startMinimized = false ;
1622 foreach ( string argument in args )
1723 {
Original file line number Diff line number Diff line change @@ -39,5 +39,10 @@ public static void DeleteShortcutFromStartupFolder()
3939
4040 System . IO . File . Delete ( shortcutPath ) ;
4141 }
42+
43+ public static string GetWorkingDir ( )
44+ {
45+ return Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) + "\\ LightroomSync" ;
46+ }
4247 }
4348}
You can’t perform that action at this time.
0 commit comments