-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
permission denied when setting Icon compiling from Linux to Windows #215
Comments
How are you doing this? |
I tried both by creating an "Icon.png" in the project folder and setting it with |
In the same directory as you are executing the fyne-cross command? |
Yes |
After doing some testing I've found some interesting info. If I already have But when I introduce a brand new image downloaded off the internet and set that using Once it breaks, running fyne-cross on the project folder seems to not work unless I replace Icon.png with whatever it had to begin with. I've removed go.mod and go.sum and the fyne-cross folder, still breaks. Verified all the md5sum hashes and file and parent folder match the working directory, still broken. I've even gone so far as to Is fyne-cross cacheing something somewhere that would cause this? This is a new one for me. |
I am wondering if by any chance you have some kind of security framework like selinux, maybe there could be some label on your file that won't even be affected by chmod. Just trying to figure out what could give that cache effect as fyne cross doesn't have any itself. |
I am facing a quit similar failure. To implement a gitlab-ci release pipeline, I wanted to create a build pipeline with fyne cross and used different docker images as a base (e.g. golang-alpine, docker in docker or alpine). With each image I got the same error:
I used the icon flag and also set my Icon as Icon.png in the root directory, but it sill crashes. It also crashes the same way if don't use any icon. I have Docker installed on every environment I have tested. |
I definitively never tried to use docker in docker with fyne cross. There might be issue around the path and sharing files between the two container. Also what do you mean by using a different base image? |
Okay after testing I think I know what's going on with the It happens if I run fyne-cross, download a new icon file (so it's creation time is after the first run), then run fyne-cross again. It somehow just kills the ability to use that file, but if I do like a I've been able to reproduce it using this method multiple times. |
@IvoryJam thanks for spending the time to try to find a reproduction case. Are you by any chance in the same scenario @julianboehne ? Because with your explanation, I can see how docker in docker would not work. If the file are not replicated on the host system, but are only present inside the first layer of docker container, then when using docker in docker, the container created by fyne-cross who is bound to the host file system would not pick it up and things would not work. I don't think we can support docker in docker easily, will have to think about it. The other possible explanation from your experiment, is there a chance otherwise that you have some secure linux policy or something like that in place that could make the right on your file impossible to be accessed by fyne-cross? |
In my case it was a docker in docker issue as mentioned by @Bluebugs and I resolved it using a docker image and the dind service and set the flag
|
Describe the bug:
When setting the Icon to be used fyne-cross is throwing the following error
However when letting Fyne create Icon.png no error occurs.
My user is in the docker group and I've also set the custom Icon.png to be owned by my user and the docker group
➜ ~ groups myUser wheel dialout docker libvirt
To Reproduce:
Steps to reproduce the behaviour:
fyne-cross windows -app-id=my.app.id
Device and debug info (please complete the following information):
Debug info
The text was updated successfully, but these errors were encountered: