Skip to content

A couple of small omissions during startup reported in the file: error_log.txt #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GeneMosher opened this issue May 12, 2021 · 0 comments · Fixed by #121
Closed

A couple of small omissions during startup reported in the file: error_log.txt #119

GeneMosher opened this issue May 12, 2021 · 0 comments · Fixed by #121

Comments

@GeneMosher
Copy link
Member

GeneMosher commented May 12, 2021

These are not code errors introduced during refactoring. There are omissions in the program boot sequence which have been around for quite a while.

Background: When ViewTouch starts, the following subdirectories are created in /usr/viewtouch/dat/ if they don't exist:

  • account
  • archive
  • backups
  • current (this directory is automatically populated with six .dat files)
  • customers
  • expenses (this directory is automatically populated with expensedb)
  • html
  • labor
  • languages
  • pageexports
  • pageimports
  • stock
  • text
  • updates

When ViewTouch starts these directories should also be created

  • /usr/viewtouch/dat/conf (if this directory exists it is automatically populated with three .ini files)
  • /usr/viewtouch/dat/screensaver

and ViewTouch should execute this command if the file: /usr/viewtouch/dat/tables.dat doesn't exist.
wget2 -P /usr/viewtouch/dat http://www.viewtouch.com/tables.dat

wget2 is GNU's rewrite of wget. It is available in Debian and in Raspbian. https://guix.gnu.org/packages/wget2-1.99.2/

NeroBurner added a commit to NeroBurner/viewtouch that referenced this issue May 16, 2021
- Require C++17 for std::filesystem and link to stdc++fs for gcc 8 builds
- cmake: add curlpp and link curlpp_static to vt_main
- main/manager: if missing download missing bootstrap files
  - `vt_data`     from http://www.viewtouch.com/vt_data
  - `tables.dat`  from http://www.viewtouch.com/tables.dat
  - `menu.dat`    from http://www.viewtouch.com/menu.dat
  - `zone_db.dat` from http://www.viewtouch.com/zone_db.dat
- main/settings: if missing create dat/conf dir for config ini files

Fixes: ViewTouch#119
NeroBurner added a commit to NeroBurner/viewtouch that referenced this issue May 16, 2021
- Require C++17 for std::filesystem and link to stdc++fs for gcc 8 builds
- cmake: add curlpp and link curlpp_static to vt_main
- main/manager: if missing download missing bootstrap files
  - `vt_data`     from http://www.viewtouch.com/vt_data
  - `tables.dat`  from http://www.viewtouch.com/tables.dat
  - `menu.dat`    from http://www.viewtouch.com/menu.dat
  - `zone_db.dat` from http://www.viewtouch.com/zone_db.dat
- main/settings: if missing create dat/conf dir for config ini files
- term/term_view: if missing create dat/screenshot directory

Fixes: ViewTouch#119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant