Git Product home page Git Product logo

Comments (10)

dw-0 avatar dw-0 commented on August 20, 2024 4

Now i get what you mean. 😄

And yes, klipper, moonraker and fluidd (and everything else) gets installed to the home directory. That is hardcoded and that won't get changed, i'm sorry.

from kiauh.

dw-0 avatar dw-0 commented on August 20, 2024

It depends where you clone KIAUH into. You aren't forced to clone KIAUH in the home directory.
It should work in any directory or subdirectory you clone it into.
Or do you experience issues? If yes, please provide error messages.

from kiauh.

tjengbudi avatar tjengbudi commented on August 20, 2024

yes i mean clone into another directory than home. i can clone the repository in another folder. but the script cannot work. cause it seeking in HOME directory.

i try with create folder ".kiauh" and failed. and then trying again with folder "installer"

the error after cloning and execute the script is like below

/home/octoprint/installer/kiauh/scripts/status.sh: line 3: cd: /home/octoprint/kiauh: No such file or directory
octoprint@HomeAssistant:~/installer/kiauh$


from kiauh.

dw-0 avatar dw-0 commented on August 20, 2024

You are right. There is a hardcoded ${HOME} in the code. Thanks for pointing that out, i will fix the issue and check the script if there are any other spots where i made the same mistake.

from kiauh.

tjengbudi avatar tjengbudi commented on August 20, 2024

emm it is a little weird. i run the kiauh.sh in the separeted folder (let's say in the "installer" folder) and it is force to create the installation in the home root directory instead in the installer directory?

from kiauh.

dw-0 avatar dw-0 commented on August 20, 2024

What installation are you talking about now exactly?
Klipper?

from kiauh.

tjengbudi avatar tjengbudi commented on August 20, 2024

sorry to make you confused about this...

i will told you what i have do

  1. i create folder "simple"
  2. make simple as active directory with "cd simple"
  3. do "git clone https://github.com/th33xitus/kiauh.git"
  4. and "./kiauh/kiauh.sh"

the installation of the klipper, moonraker, and fluidd (cause i install fluidd only) is in the home directory. (/home/octoprint/ in my case), when it supposed need to install in the simple directory (/home/octoprint/simple)

that's why i ask you, are this script force to install in the home directory? i already tried your newest project. it still force install the klipper, moonraker and the fluid in the home directory.

sorry for my bad english, install might means where you save the klipper, moonraker and fluid code

from kiauh.

kjkent avatar kjkent commented on August 20, 2024

As a feature request and alternative to allowing arbitrary install locations, perhaps KIAUH could respect the XDG Base Directory Specification if the requisite env vars were set. I may fork KIAUH to try to implement this, and would be happy to submit a PR if @dw-0 was open to it.

from kiauh.

dw-0 avatar dw-0 commented on August 20, 2024

i would like to kinda refrain from using any specification in terms of files or directories to be honest. The issue is almost 3 years old and my view has changed a bit. So IF we allow different installation directories, how about NOT enforcing any specific (base) directory?

as some might have noticed, there is a kiauh rewrite ongoing. at a later stage, i plan to add support for custom installation directories. which should be rather easy to implement afterwards. there is an issue here: #372 that is also added to the milestones already.

from kiauh.

kjkent avatar kjkent commented on August 20, 2024

@dw-0 Thanks for the response. Yeah, there's good arguments for not enforcing a particular spec, and taking that approach means folk who want their files in a particular dir (like the XDG_XXXXX_HOME dirs) can do so anyway!

I'll check out the new linked issue, many thanks.

from kiauh.

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.