-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Symlink the arduino binary #7593
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
Conversation
@2E0PGS this would make the "installation" dependant on |
./install.sh would prompt for a password once it hits the symlink part if ran as non root currently.
Peter Stevenson (2E0PGS)
http://www.m3pgs.co.uk
…On 16 May 2018, 09:34, at 09:34, Martino Facchin ***@***.***> wrote:
@2E0PGS this would make the "installation" dependant on `sudo`, which I
would avoid at all costs.
Maybe checking the UID and then symlinking the executable in
`/usr/local/bin/` if we have permissions to do it could be a good
solution.
This way, launching `./install.sh` as a user wouldn't install the
symlink, while `sudo ./install.sh` would.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#7593 (comment)
|
Yes, but you are assuming that a system has |
OK I suppose I assumed they are in the SUDOers group. Ref want to access it from CLI I think most who install software expect to find it in path. Thats the easy way to launch software besides using menu entries. How about making the whole script require root level privileges and then I add code to move the folder into /opt/ and generate symlink to usr/bin. That to me seems like a more sensible trend of installers. Could add flags for user level install and system wide installs. one requiring root and one not. |
Here is another suggestion: Just try to symlink; if it fails, handle it gracefully and tell the user. (More robust than "check if xxx and if so then zzz", and does not require root access.)
|
Yea that's a good idea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting for integration of #7593 (comment)
I will add the changes ASAP. |
Added the suggested changes. |
Did anything like this ever get implemented? I am about to install Arduino and this pull never got merged so wonder if I need to manually symlink still... |
I did indeed have to symlink it manually still or use my branch. I think this is fine for merge if the error message from |
install.sh should symlink arduino into
/usr/local/bin/arduino
so arduino is accessible via users PATH.Related issues:
#5780
#5366