-
Notifications
You must be signed in to change notification settings - Fork 22
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
Packaging and then installing a fyne app on Linux as per https://docs.fyne.io/started/packaging.html breaks filesystem permissions #10
Comments
What command did you use to extract the files? A tar being expanded should not change permissions on directories that already exist... |
$ sudo tar xf myapp.tar.xz --directory=/ This does change the owner of |
Something isn't quite making sense here - as the tar does not contain any user / permission information for directories. I don't know if this has changed, or if distributions are able to change the defaults - but here an extract doesn't alter owner or permission of parent directories. More thoughts at https://www.linuxquestions.org/questions/linux-software-2/tar-extracted-paths-not-retaining-original-ownership-4175591789/ |
The
From the man page:
Since it cannot be unpacked without Even if Which is why I opened the issue here in the documentation, rather than the main project. It appears everything works as intended, just that the installation instructions have unwanted side-effects and should just tell Linux users to either move the files over manually after extracting the folder in a safe location or simply use the provided |
The Not sure if this helps or not. |
The archive created for Linux with the
fyne package
command assigns ownership for the whole folder structure to the current user. This means when it is extracted to the filesystem root/
as per https://docs.fyne.io/started/packaging.html it overwrites the ownership for the/usr
folder fromroot
to either whoever created the archive or who unpacked it, depending on how the users decided to unpack it.Additionally, the archive contains a Makefile, which is also extracted to
/Makefile
if the archive is just extracted as per the instructions on https://docs.fyne.io/started/packaging.html.I assume the correct solution to this would be to update the docs to reflect that users should use the Makefile instead of extracting the archive directly to
/
. The Makefile even contains instructions on how to use it.The text was updated successfully, but these errors were encountered: