been_1990
14th February 2013, 20:19
I want to get the directory to the startup programs on win menu, and using
QStandardPaths::standardLocations(QStandardPaths:: ApplicationsLocation).at(0) returns only the applications installed for current user:
C:\Users\[USERNAME]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
as opposed to for all users (most programs are installed here):
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
Does Qt solve this, or am I going to have to hardcode the path? Or read with winapi?
QStandardPaths::standardLocations(QStandardPaths:: ApplicationsLocation).at(0) returns only the applications installed for current user:
C:\Users\[USERNAME]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
as opposed to for all users (most programs are installed here):
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
Does Qt solve this, or am I going to have to hardcode the path? Or read with winapi?