Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the installation path fixed to $HOME/.local/? #1954

Closed
lxwulf opened this issue May 28, 2024 · 4 comments
Closed

Is the installation path fixed to $HOME/.local/? #1954

lxwulf opened this issue May 28, 2024 · 4 comments

Comments

@lxwulf
Copy link

lxwulf commented May 28, 2024

I downloaded the Linux zip file and wanted to move the binary in the /bin folder of the zip file to $HOME/.bin/d2/. I recognized that this does not work. Then I looked at the installation script and saw that it want to install it to $HOME/.local.

So I decided to copy the binary to $HOME/.local/bin, and the wizard of gondor decided that does now work.

So as my titled mentioned it, my question is: Is the installation path fixed to this specific location?

Greetings

LxWulf

🐧 🐺

@lxwulf lxwulf changed the title $PATH location fixed to $HOME/.local/bin? Is the installation path fixed to $HOME/.local/? May 28, 2024
@alixander
Copy link
Collaborator

alixander commented May 28, 2024

What do you mean by "this does not work"? What happens when you execute the path?

@lxwulf
Copy link
Author

lxwulf commented May 29, 2024

I would like to apologize for my lack of clarity. The binary works in any case, there is nothing wrong in that regard.

What I meant is that I can't call the binary if it's under $HOME/.bin/d2/, but if it's under $HOME/.local/bin.

So my goal is to have all external binaries or binaries I want to test “installed” under $HOME/.bin/ to have an overview of them, but this somehow does not work with d2.

Note

I have my path to my custom bin directory exported in my .bashrc file.

export PATH=$PATH:$HOME/.bin/*

And yes I also tried to point directly to the d2 folder.
Other external binarys do work.

@alixander
Copy link
Collaborator

What do you mean you can't call the binary? The error is that it's not found? If so this is an environment path issue. It's impossible for a binary to hide itself or something unless at a specific folder.

@lxwulf
Copy link
Author

lxwulf commented Jun 8, 2024

Besides that, other binaries does work in my custom $HOME/.bin/ folder, your answer is not really helpful. No matter if I'm wrong or not, you could explain what it could be or just be more kind.

Anyway, the question is more if your execution path is hard-coded in the binary. Because as mentioned above the binary works in one of the standard bin folder but ☝️ not in the custom bin folder of my own.

Greetings,

LxWulf
🐧🐺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants