lostindark / DriverStoreExplorer

Driver Store Explorer [RAPR]
GNU General Public License v2.0
6.63k stars 389 forks source link

[REQUEST] Full portable mode #155

Open AndhikaWB opened 3 years ago

AndhikaWB commented 3 years ago

Since the log file (Rapr.log) is now stored on executable directory, can we move config file (user.config) to executable directory too?

Or maybe something cleaner like creating Data folder (on executable directory) where both log and config files are stored there. Currently it writes to %LocalAppData%\Rapr\...\user.config, you can change it so it writes there only if the executable directory is read-only.

ghost commented 1 year ago

I would like to second the request. Config file should stay along EXE file. In order to distinguish specific config files (in case the same application would be run on separate machines) it might be worth including in their filenames: Windows username, Windows computer name or any other user/machine identifier. Or, as the original poster suggests, include Data folder which then would include a folder named the same way Windows USER/MACHINE is, and put config file there.

BiatuAutMiahn commented 1 year ago

I'd say check if user.config exists in binary directory, if so does config have portable=true or something. I've also seen some programs have an empty portable.txt in the directory jfft