Closed tnodir closed 1 year ago
good issue. looks like currently it just assumes that it is in the same folder as the program:
--profile
and --readonly
were added.
-p
is skipped.
csv-import
and csv-export
CLI options were changed to --csv-import
and --csv-export
.
@little-brother Thanks for adding the "--profile" argument.
Now it expects a file path:
--profile <PATH>\prefs.sqlite
Can you please change it to expect just a path:
--profile <PATH>
?
WinMain():
if (profileArgNo && profileArgNo < nArgs) {
_tcscpy(prefPath16, args[profileArgNo + 1]);
} else {
_tcscpy(prefPath16, APP_PATH);
- _tcscat(prefPath16, TEXT("\\prefs.sqlite"));
}
+ _tcscat(prefPath16, TEXT("\\prefs.sqlite"));
It already should be --profile <PATH>
because _tcscpy(prefPath16, args[profileArgNo + 1]);
.
I've first tried the following:
D:\Utils\Tools\SQLiteGui\sqlite-gui.exe --profile D:\Utils\Tools\SQLiteGui\data
, but it did not work.
Then I saw the source code and used the:
D:\Utils\Tools\SQLiteGui\sqlite-gui.exe --profile D:\Utils\Tools\SQLiteGui\data\prefs.sqlite
, which did work.
Please add ability to change the path, where the
prefs.sqlite
should be stored.Rationale:
prefs.sqlite
file in app's folder and grant write rights to ordinary user, but there is still problem with temporaryprefs.sqlite-journal
file.