Follow

lol ok, if I've successfully compiled a binary file on Linux, where should I move it to so it's in my PATH?

· · Web · 4 · 2 · 1

@schlink what kind of application (like, totally essential for the system especially in the early phases of booting or not?) and installing it as a super user or not?

@schlink /usr/local/bin for global installation, ~/.local/bin for local one

@fin_ger @Scarlet @schlink Oh, thanks! Maintaining compatibility with systemd isn't a big deal for me on an end-user device, but it's good to know why it was mentioned 🙂
I may benefit from symlinking the two together one day ...

@schlink

Since I use Arch and it's easy to make packages, I'd wrire one that adds files in /usr prefix.

I use /usr/local/bin for symlinking (e.g. vim to neovim or redshift to gammastep).

For other things I use ~/.local/bin or a custom path in my home (voting this option).

@schlink On my current install, I only got symlinks created by pipx in ~/.local/bin, and some scripts in ~/Scripts

@schlink I use scripts for using a light theme on apps that do not work well with a dark theme (like Firefox for example, due to some websites not dealing with it).

export GTK_THEME=Adwaita
exec /usr/bin/firefox "$@"

@schlink it depends on your install. I put my personal binary in ~/.local/bin by I know that it's a common practice to put them in /use/local/bin
Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!