GithubHelp home page GithubHelp logo

XDG Compliance about kb HOT 6 CLOSED

gnebbia avatar gnebbia commented on August 28, 2024 1
XDG Compliance

from kb.

Comments (6)

gnebbia avatar gnebbia commented on August 28, 2024 3

Dear Sir, XDG compliance is surely a priority, hence with the next release the default directory will change its position.
Let's keep this open until it is fixed.

from kb.

gnebbia avatar gnebbia commented on August 28, 2024 2

Dear Sir, XDG compliance has been implemented. Of course it will break some sort of compatibility with previous versions.

A fix can be users moving $HOME/.kb into $HOME/.local/share/kb or into the XDG_DATA_HOME directory.

At the moment this is of course only implemented within the git version but as soon as 0.1.7 will come out this will be the default.

from kb.

gnebbia avatar gnebbia commented on August 28, 2024 1

Yes you are right, my bad.

This the latest commit should fix this for good. Thanks to your suggestion and testing. Really, thanks a lot!

from kb.

xscode-auto-reply avatar xscode-auto-reply commented on August 28, 2024

Thanks for opening a new issue. The team has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/gnebbia/kb

from kb.

hyperupcall avatar hyperupcall commented on August 28, 2024

Thank you very much! I am excited to see this change in the new release :)

from kb.

hyperupcall avatar hyperupcall commented on August 28, 2024

@gnebbia I checked some of the changes, and I just wanted to be sure of something :P

Could it be that the following code matches your description a bit more:

BASE_PATH = Path(os.environ.get("XDG_DATA_HOME",Path(Path.home(),".local","share")),"kb")

It looks like that with the current changes, if XDG_DATA_HOME is defined, then PATH_KB would be set to $XDG_DATA_HOME and PATH_KB_GIT would be set to $XDG_DATA_HOME/.git, rather than $XDG_DATA_HOME/kb and $XDG_DATA_HOME/kb/.git, respectively

from kb.

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.