GithubHelp home page GithubHelp logo

Comments (7)

wheaney avatar wheaney commented on June 18, 2024

We should also be moving the driver's bin and config files to their proper directories. Keep in mind you'd need to update the setup scripts to copy the existing config file if the user already has one.

from breezy-desktop.

wheaney avatar wheaney commented on June 18, 2024

Also note that the setup scripts call uninstall for the previous version already, so if you just update setup to do install properly going forward, you don't need to clean up the old bin files. Only the config file needs special treatment to be preserved.

from breezy-desktop.

wheaney avatar wheaney commented on June 18, 2024

We should also update the README docs to reference new bin and config file locations.

from breezy-desktop.

pravic avatar pravic commented on June 18, 2024

~/.xreal_driver_log should be moved somewhere better as well.

from breezy-desktop.

wheaney avatar wheaney commented on June 18, 2024

I'm updating all the file locations now soon. Here's my plan:

  • logs: ~/.local/share/xr_driver/logs
    • currently ~/.xreal_driver_log
  • driver binary: /usr/local/bin/xr_driver/
    • currently ~/bin/xrealAirLinuxDriver
  • bash scripts: ~/.local/bin/xr_driver/
    • currently ~/bin/xreal_driver_(config/uninstall)
  • driver config file: ~/.config/xr_driver/
    • currently ~/.xreal_driver_config

from breezy-desktop.

wheaney avatar wheaney commented on June 18, 2024

Just a note: all my recommendations above are based on eventually moving to a user-systemd service (instead of system/root like it is now).

Additional recommendations from a convo on the Discord:

If stuff is reading and writing to the user-directory then the systemd unit should probably be a user-unit in ${XDG_CONFIG_HOME}/systemd/user too.
Likewise IPC and lock bits would go into ${XDG_RUNTIME_DIR}/xr_driver
Rather than ~/.local/share/xr_driver/logs logs are considered state so would go to ${XDG_STATE_HOME}/xr_driver/logs

We should also move the license file currently located at /var/lib/xr_driver/device_license.

Also reiterating a point above: we'll want the driver setup script to move some of these files so they're preserved. Specifically the config and log files, but the license could be moved as well (it'll just be re-downloaded to the new location if we don't do this, but if somehow they ran the setup offline, it would be better to proactively move for them so they don't lose functionality if they aren't able to download).

from breezy-desktop.

Related Issues (12)

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.