Ken,

If you insist on using a URI with a scheme, try:

/Applications/GnuCash.app/Contents/MacOS/gnucash-cli -Q get file:///Users/kcburns/GnuCash/KCBurns.gnucash

Note: Three slashes after file:

Regards,

Sherlock


On 12/30/24 7:07 PM, Sherlock wrote:
Ken,

Try:

/Applications/GnuCash.app/Contents/MacOS/gnucash-cli -Q get /Users/ kcburns/GnuCash/KCBurns.gnucash

Regards,

Sherlock


On 12/30/24 6:14 PM, gnuc...@kcburns.com wrote:
I am using zsh and default XML storage.

Last login: Mon Dec 30 20:33:37 on ttys001
kcburns@Mac001 ~ % ls /Users/kcburns/GnuCash/KCBurns.gnucash
/Users/kcburns/GnuCash/KCBurns.gnucash

kcburns@Mac001 ~ %
kcburns@Mac001 ~ % /Applications/GnuCash.app/Contents/macOS/gnucash- cli -Q get file:/Users/kcburns/GnuCash/KCBurns.gnucash
Application Path /Applications/GnuCash.app/Contents/macOS/gnucash-cli
* 20:42:44  WARN <gnc.engine> failed to load gncmod-backend-dbi from relative path * 20:42:44 ERROR <gnc.engine> required library gncmod-backend-dbi not found. * 20:42:44  WARN <gnc.engine> failed to load gncmod-backend-xml from relative path * 20:42:44 ERROR <gnc.engine> required library gncmod-backend-xml not found. * 20:42:44 ERROR <GLib-GIO> g_settings_schema_source_lookup: assertion 'source != NULL' failed * 20:42:44 ERROR <GLib-GIO> g_settings_new_full: assertion 'schema != NULL' failed * 20:42:44  WARN <gnc.app-utils.gsettings> [gnc_gsettings_get_settings_obj()] Ignoring attempt to access unknown gsettings schema org.gnucash.GnuCash.general zsh: segmentation fault /Applications/GnuCash.app/Contents/macOS/ gnucash-cli -Q get

kcburns@Mac001 ~ %
kcburns@Mac001 ~ % /Applications/GnuCash.app/Contents/MacOS/gnucash- cli -Q get file:/Users/kcburns/GnuCash/KCBurns.gnucash
Application Path /Applications/GnuCash.app/Contents/MacOS/gnucash-cli
* 20:43:22  WARN <gnc.backend.dbi> [GncDbiBackend<DbType::DBI_SQLITE>::session_begin()] Sqlite3 file file:/ Users/kcburns/GnuCash/KCBurns.gnucash not found * 20:43:22 ERROR <gnc.gui> [cleanup_and_exit_with_failure()] Session Error: Sqlite3 file file:/Users/kcburns/GnuCash/KCBurns.gnucash not found

kcburns@Mac001 ~ %
kcburns@Mac001 ~ % /Applications/GnuCash.app/Contents/MacOS/gnucash- cli -Q get file://Users/kcburns/GnuCash/KCBurns.gnucash
Application Path /Applications/GnuCash.app/Contents/MacOS/gnucash-cli
* 20:44:08  WARN <gnc.core-utils> create new file /Users/kcburns/ Library/Application Support/GnuCash/data/ Users_kcburns_GnuCash_KCBurns.gnucash * 20:44:08  WARN <gnc.core-utils> create new file /Users/kcburns/ Library/Application Support/GnuCash/data/ Users_kcburns_GnuCash_KCBurns.gnucash * 20:44:08  WARN <gnc.backend.dbi> [GncDbiBackend<DbType::DBI_SQLITE>::session_begin()] Sqlite3 file / Users/kcburns/Library/Application Support/GnuCash/data/ Users_kcburns_GnuCash_KCBurns.gnucash not found * 20:44:08 ERROR <gnc.gui> [cleanup_and_exit_with_failure()] Session Error: Sqlite3 file /Users/kcburns/Library/Application Support/ GnuCash/ data/Users_kcburns_GnuCash_KCBurns.gnucash not found
kcburns@Mac001 ~ %


I am not clear whether the second / ahead of the path to my data file should be there.


Thanks,

Ken

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to