-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
[Bug]: Run_script not working #3275
Comments
Looking at the trace, the installer is failing to get the executable icon. Do you have one in your manifest? |
I don't have an exe by that name at that location, however the script action should be fired before that is checked. Specifically I expect this output that you have achieved in bottlesdevs/programs#24 as I'm using the script found there and in the maintainers guide |
There is something wrong happening here I did a full code checkup yesterday and this one was the more cursed one. I'll take a look again asap, feel free to check it out if you know how to py. |
Unfortunately I don't know how to code python yet, but it's is as good a reason as any to get my feet wet 😉 Glad to hear that you can also confirm there is a bug hiding somewhere. |
use the build.sh script in the root of the project, it will fail on some points listing what platforms and sdks are missing, then run it again to proceed. It will also start flatpak as the final step |
I think I'm still missing a trick, the script exits with no printed error, as it cant find 'flatpak-spawn' Give me a day to play around with it, and see what I can do to get it working, and then after that I will ask for some pointers, I don't want to waste your time ;) |
I see the error, I am missing a call |
I just updated the script 2bd8b60 |
So after testing the Run script definition inside installer.py, it looks like the issue likes in lines 256-257, as commenting out
Bottles then starts executing the script as expected. So the question is what is wrong with them causing subprocess.Popen to not work? |
@mirkobrombin |
That allows you to capture the output to handle it but I don't think we're actually handling it. In any case, if it works now it means that it was just a problem with where the outputs landed and therefore it was still working. I think it's ok to leave them commented. About the exit handler, I would make the installer fail. |
Got a working script runner after a lot of testing. I.e. After all this I still need to investigate what the |
So is that PR still in draft? 🤔 |
It depends on there being a possibility in Bottles to gracefully raise an error to the user through the GUI. If there is an example in the existing system I can try and replicate it (I would expect something around the dependency code) Not something I've looked into yet, so it may be best to merge the current state, and then make a second pass to add a graceful fail instead of the current continue on error? |
At the end of the day the current goal I'm aiming for is to get applications that require mimetype registration for login working smoothly with bottles. Specifically Autodesk Fusion. But it will also be useful for other "cloud"/SSO applications such as Melodics https://gist.github.com/adrienbeau/1d0af5c53a1f952a07b41da02ed2d7c2 One thing with this project that confused me in the beginning was that the user had to create the Bottle knowing the requirements of an application, rather than the application manifest defining the runner to use. I'm still not exactly sure why it's up to the user to pick that, but there should at least be ways for the manifest to block installs on known bad bottles (i.e. wine below or above a specific version) |
To make it fail, simply |
I'm currently experiencing problems getting the Run_script action to work using the information provided by the maintainers guide here
Also created a test application based on the information found in issue bottlesdevs/programs#24
Unfortunately no such luck getting the expected output to show.
Please can you advise if I'm doing something wrong, it seems that I cannot get this action to work on Kbuntu 23.10, but I haven't tried on any other devices/workstations yet
The text was updated successfully, but these errors were encountered: