Giter VIP home page Giter VIP logo

typon's People

Contributors

ihsuy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

typon's Issues

Data directory seems baked-in to the directory where you compiled the app, and can't be changed

The data directory location should be easily user-configurable and changeable, e.g. via CLI flag, and/or a config file such as ~/.config/typon.conf. But it doesn't seem to be.

I always compile applications in /tmp, so that cruft doesn't build up. Which gets deleted after every reboot. After realizing the data directory got created under that temporary git project directory for some weird reason, I copied the following data to ~/.local/share/typon/ before my next reboot:

  • quotes/
  • gsave.txt
  • psave.txt
  • stats.txt

But I can't get /usr/local/bin/typon to use this location. And the application fails after /tmp is cleared.

I've tried running typon while in that new data directory as the current directory; that doesn't work.

I've also tried running typon -path ~/.local/share/typon just in the unlikely case that's a thing typon understands; it doesn't seem to. (typon -path still returns the now non-existent path it insist on trying to use.)

I can't find a user or system-wide typon config file that defines that path anywhere. Not anywhere under my user folder (named anything with "typon" or "ihsuy" in it), not anywhere under /etc, /usr, /var.

I've searched the source code to see if I can figure out how it's handling the path for those things (I'm sure that's figure-out-able, but I can't seem to.) I've found variables for storing them in save_handler[c|h]pp but not how they are set. It seems like I'm missing how/when/where the variable my_addr gets set.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.