Re: Folder in admin account
Have your install procedure create a common directory with appropriate UNIX permissions (you might use the setgid or sticky bits). Somewhere under /var may be appropriate, or you could allow the system admin to determine a location that suits them and specify that to the program.
Re: Folder in admin account
thanks,
sorry, I forgot to mention the program is intended for Windows users.
I want the files to be accessible for the application but not for the user.
Re: Folder in admin account
I selected UNIX because your profile lists only UNIX/X11.
The answer is the same though: create folder with appropriate permission in your installer. Windows has designated locations for global shared data (e.g. FOLDERID_ProgramData or FOLDERID_PublicDocuments in SHGetKnownFolderPath function). These are not available through Qt4's QDesktopServices but may be available through Qt5 QStandardPaths
If the application can read or write the file then so can the user... the application runs with their privileges after all. You can slow down the user by maintaining obscurity about the location, prohibiting directory listing on the folder, encryption using an obscured embedded key etc.
Re: Folder in admin account
Hi, there is also a Windows Environment Variable "ALLUSERSPROFILE", which points to a common directory for all users.
Ginsengelf
Re: Folder in admin account
thank you very much for the replies,
Question answred
mugi