-
Notifications
You must be signed in to change notification settings - Fork 7
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
fyne get requires root access #21
Comments
The behaviour of "fyne get" is to install to the system specific application area - this are graphical app packages not go binaries. On windows this is Program Files and on macOS it is /Applications. This way the apps are findable in standard launchers. |
If it respects |
Fyne install is not like go install - it is not simply dripping the binary file in. It has metadata and package artefacts depending on OS |
How about adding a flag like |
Maybe |
How about best effort, if there is no write access to |
I don't think that it's a good idea to significantly change location based on permission setup. |
I agree. It is better to default to requiring sudo and then potentially give a suggestion, in the error message, to either elevate permissions (using |
What information is still needed then? |
It would be good to know if you are happy with with @Jacalz proposed. If so we can proceed. |
@paboum Why did you close this as not planned? I think it should stay open until the proposed feature has been implemented. |
I was attempting to install fyneterm when I ran across this issue. There are a few things that can be improved.
|
Prompting for |
Maybe another approach is to detect the user we are running under and if it isn't root, we do the install as a user (our Unix Makefile support that with the |
We have already discussed the solutions for this further up in this thread. I believe we already have a good idea for how to solve this |
Oops, indeed. |
Moving to the tools repo where this development is being picked up. |
Checklist
Describe the bug
The
fyne get
command assumes/usr/local/bin
as installation target (hardcoded) and makes no use ofGOPATH
env var.How to reproduce
$ fyne get fyne.io/apps
Screenshots
No response
Example code
Fyne version
2.2.4
Go compiler version
1.19.2
Operating system
Linux
Operating system version
Gentoo
Additional Information
It would be preferable to respect
GOPATH
and build apps in$GOPATH/bin
, with a possibility of creating symlinks in/usr/local/bin/
.Also, note that
/usr/local/bin
may be writable for regular users on some systems, but it's not a standard behavior:https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
The text was updated successfully, but these errors were encountered: