Giter Site home page Giter Site logo

Support "Portable Mode" about xbvr HOT 4 CLOSED

vpfruitly avatar vpfruitly commented on August 17, 2024
Support "Portable Mode"

from xbvr.

Comments (4)

cld9x avatar cld9x commented on August 17, 2024

Good idea

from xbvr.

jrebey avatar jrebey commented on August 17, 2024

This can already be done through the use of go-appdata.

Simply set XDG_CONFIG_HOME environment variable on Linux or APPDATA on Windows to whatever path you want when running the binary.

On Linux:
XDG_CONFIG_HOME=/some/path xbvr

On Windows:
set APPDATA=c:\some\path && xbvr

Doing this will create an xbvr path if it doesn't exist, or use an existing one.

Let me know if it works on Windows!

from xbvr.

vpfruitly avatar vpfruitly commented on August 17, 2024

Yep, that absolutely works, but it's a bit much maybe to ask of end users. Something like a setting to pass in a path or check the current folder would be much simpler.

But I think it boils down to getting feedback on how wanted this feature is. Maybe it's just me, and I can certainly use this method, in which case it's not worth the development, testing, and added complexity.

from xbvr.

jrebey avatar jrebey commented on August 17, 2024

We've been steering folks towards Docker more and more. With docker, you can use volumes and store them wherever you want. I think using docker would be preferred over these types of features.

I'm not sure I see a major difference between xbvr --appdata=/path/to/data and the method I posted in regards to complexity for users aside from the differences in methods between platforms. But that's mostly a documentation issue.

from xbvr.

Related Issues (20)

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.