News for hackers. Stuff that matters.
Re:Dotfile madness by wongarsu on Saturday February 02, 2019 @06:09PM (#19066444)
The sum of the length of all environment variables has to be below 32767 characters. That doesn't seem like a good excuse to save 14 characters by putting your program's folder in C:/ instead of C:/Program Files/

If you do deeply nested paths (as npm used to do) then you can run against the old MAX_PATH limit that limits paths to 260 characters, but the correct solution is to either choose a flatter directory structure or use the newer APIs that allow paths with 32,767 characters.

Re:Dotfile madness by airstrike on Saturday February 02, 2019 @11:53PM (#19067940)
C:\ isn't protected by UAC like C:\Program Files, though
Re:Dotfile madness by pjmlp on Sunday February 03, 2019 @04:34AM (#19068629)
The correct place to install local user apps is

C:\Users\username\AppData\Local

Or even better to work with localization

%LOCALAPPDATA%

Re:Dotfile madness by wongarsu on Sunday February 03, 2019 @04:22AM (#19068594)
Steam is doing just fine writing into C:\Program Files (x86)\Steam\steamapps from an unpriviledged process. It just gives all users full rights over that folder. (whether that's a great idea is a different question, but UAC isn't a problem if you just set your access rights correctly)
Re:Dotfile madness by WorldMaker on Monday February 04, 2019 @02:21PM (#19079702)
Steam has definitely been handling Program Files wrong for as long as Program Files has existed. It's a marvel that there isn't more historic Malware intentionally targeting Steam install paths, though it looks like that storm is brewing on the horizon as I've seen references to such malware in the process of becoming a problem.

Steam should have worked to figure out a better approach to UAC years ago. At this point it is one of several big tech debt issues with Steam that has my confidence in Valve at an all time low as a consumer.

Re:Dotfile madness by airstrike on Sunday February 03, 2019 @09:47AM (#19069806)
This assumes the user had admin privileges to begin with
Re:Dotfile madness by wongarsu on Sunday February 03, 2019 @11:11AM (#19070359)
If the user never had admin priviledges then you can't install in C:\ either and the program should just install in AppData\Local (as my sibling poster correctly stated)