Skip to content

Commit 8d19ae0

Browse files
committed
Add username from windows identity
1 parent 5048015 commit 8d19ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SaveWin10Pictures/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private static void Main()
1313
display("Checking if there are new images to be copied...");
1414
List<string> files = new List<string>();
1515
int counter = 0;
16-
const string userName = "user";
16+
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
1717
string imagePath = $@"C:\Users\{userName}\Pictures";
1818
if (Directory.Exists($@"C:\Users\{userName}\Pictures\fond_ecran"))
1919
{

0 commit comments

Comments
 (0)