-
Notifications
You must be signed in to change notification settings - Fork 78
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
Ubuntu 24.04, dotnet (sdk 8.0.110) & (runtime 8.0.10) Photino.NET template app won't run #223
Comments
Just tested this on my Debian 12.5 VirtualBox. |
@raddevus Could you check whether you have libwebkit2gtk-4.0 installed? |
@flyingpie Here you can see that detail in the Photino app I'm working on right now -- which lists all running processes & lets me get their details. thanks |
@raddevus Looks nice! This is an annoying issue, these things are going on:
The Tauri guys had the same problem, but Tuari 2 has moved to 4.1, which I suspect would also happen with Photino at some point. 23.04
24.04
|
Great info about this issue. I really appreciate it. It really is an annoying problem. |
@raddevus You're welcome! I've had this issue on one of my machines that's also running 24.04. I used this workaround, but it's not great. It adds the package repository for the previous release (Jammy). This is not recommended, but it can help until 4.1 is supported by Photino, and you don't want to run VM's. Add these to /etc/apt/sources.list.d/ubuntu.sources:
(Can also use other mirrors ofc). Then:
I'd recommend removing the Jammy repos after this. And not doing this on important production machines, like servers or whatever. Mixing repositories of multiple releases can cause lots of issues around dependencies, so again, don't do this on really important machines. |
We are aware of the issue, however it is a dilemma (as well described in the tauri link above). We have to build Photino for EITHER 4.0 or 4.1. We can't make it work for both. Until recently, 4.0 was much more prevalent, however, this is no longer the case. If we switch to 4.1, it will break everyone running 4.0. At some point, we will make the switch and create a breaking change. Until then, the work-around is to install 4.0 manually as described in that link OR to create your own package (deb, snap, etc.) for distribution and include the library (see publishing guide in samples). CentOs, Debian 11 and below and Ubuntu 20.04 and below do not have the webkitgtk 4.0. We will likely go to a new major version number when we do switch to 4.1. If the community has any suggestions, we'd like to hear from you. |
Mike, thank you for the explanation! Would it be an option to ship Photino with native versions for both 4.0 and 4.1, and have it pick the right one on runtime? |
@flyingpie We're not aware of a way to do that unfortunately. |
@MikeYeager I do believe this is a showstopper for me right now, I've been using Photino for more than a year now, with almost all of my Desktop projects using it. However, with this and #205 still in a state of uncertainty, I basically have to clone my Photino 2.6 apps (as examples are also broken) and the path to 3.X is not available at all. |
@LauraWebdev So we're on the same page, the problem you're referring to is the dependency on webkit 4.0, as opposed to 4.1, correct? E.g. Fedora and Nobara ship 4.1 only. |
@flyingpie Yeah, Fedora 40 started shipping with 4.1 in April this year |
I'm running :
Ubuntu 24.04.1 LTS
dotnet core that is current on that system is:
sdk 8.0.110
runtime 8.0.10
When you use the template to create a project it uses Photino.NET 2.3.0
When you run the template project you will get an errors that state:
`/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.10/libPhotino.Native: cannot open shared object file: No such file or directory
/home/raddev/dev/dotnet/photino/2025/third/bin/Debug/net8.0/libPhotino.Native: cannot open shared object file: No such file or directory`
App Won't Run
The dotnet CLR has tried to find libPhotino.Native and doesn't find it so the app won't run.
I've tried updating Photino.NET to 3.1.17 and 3.2.3 with no luck. I get the same error.
The Workaround Fix
However, I was able to update to Photino.NET 2.6.0 and successfully run the app.
So, the point here is that on Ubuntu 24.04.1 running those versions of .NET I can only use the Photino.NET 2.6.0 library.
The text was updated successfully, but these errors were encountered: