tperry2x wrote: ↑Sat Apr 27, 2024 6:30 pm
I'd probably do a version-jump to 1.1 when (if?) I get the player tools and browser working on Linux. I mean, I can make them work while saving hundreds of MB off the size of the IDE, however I then have the issue as how to 'embed' these in the linux standalones, how to get the standalones to use those embedded methods after they are created, and the issue of compatibility (although that seems to work out-of-the-box, as the stacks don't fail to open - the linux 'player' and linux 'browser' just render as standard buttons).
I just opened LC CE this morning to check something and it popped up info about their latest DP release of LC 10, where they mentioned browser widget on macOS changing from the older Appkit Web view to the newer UIKit API's (read as 'iOS') WkWebView on macOS. This seems to be more or less an update to newer version of basically the same thing on macOS.
But for what it's worth I think Browser widget should use WkWebView and it's GTK equivalent WebKit2GTK on Linux
As seen done for Python
https://pywebview.flowrl.com
WebKit has been adopted as the default System's Web Content View engine on a few Linux Distro's such as Fedora.
This of course assumes that WebKitGTK is present from the OS (again the default in Fedora now), but I think even if we were to modify Browser Widget and the Engine's internal 'BrowserFactory' methods to switch to WebKit across the board, it still think it would be good to have a small alternative Web viewer binary as a failsafe/back-up on Linux.
I say as a back-up because the Browser Widget is more than just a viewer, it's two-way communication between Javascript <> XTalkScript, which is what makes it interesting to me. I'm not sure how one could facilitate similar polyglot programming using what is essentially a GUI-less external web browser?
Anyway, the best way to package it up so that it can be included in standalone is ...(and I swear to you I'm not pushing them for no reasons) by packaging it as an Extension / Widget. That does NOT mean you would have to learn XTention Builder language.
xTScript Libraries can also be extensions (just as OXT General Music Lib is script), and
Extensions can contain their own 'resources' folder (which could contain a binary executables I suppose) which could then be included when the Extension is copied into a standalone.
I've been thinking it may be possible to 'borrow' from something like the Free Pascal Compiler community's work, and wrap their FPC Library that makes WebKitViews, packaged as a Widget Extension, then use that on all platforms for consistency.
https://wiki.freepascal.org/fpwebview
A thing I'm not sure about is that Microsoft license for their WebKit dll which is used on the Windows version of it:
https://github.com/PierceNg/fpwebview
A quick read looks like it is a rather liberal license.
I think I'm going to try to do some experiments. I have some plain C code saved that creates a WebKit view inside a GTK window.
https://webkitgtk.org/reference/webkit2 ... bView.html
It might be helpful to look at Trevor Devore's XTension Builder wrapper for making a WebKit view:
tperry2x wrote: ↑Sat Apr 27, 2024 6:30 pm
I'd probably do a version-jump to 1.1 when (if?) I get the player tools and browser working on Linux. I mean, I can make them work while saving hundreds of MB off the size of the IDE, however I then have the issue as how to 'embed' these in the linux standalones, how to get the standalones to use those embedded methods after they are created, and the issue of compatibility (although that seems to work out-of-the-box, as the stacks don't fail to open - the linux 'player' and linux 'browser' just render as standard buttons).
I just opened LC CE this morning to check something and it popped up info about their latest DP release of LC 10, where they mentioned browser widget on macOS changing from the older Appkit Web view to the newer UIKit API's (read as 'iOS') WkWebView on macOS. This seems to be more or less an update to newer version of basically the same thing on macOS.
But for what it's worth I think Browser widget should use WkWebView and it's GTK equivalent WebKit2GTK on Linux
As seen done for Python
https://pywebview.flowrl.com
WebKit has been adopted as the default System's Web Content View engine on a few Linux Distro's such as Fedora.
This of course assumes that WebKitGTK is present from the OS (again the default in Fedora now), but I think even if we were to modify Browser Widget and the Engine's internal 'BrowserFactory' methods to switch to WebKit across the board, it still think it would be good to have a small alternative Web viewer binary as a failsafe/back-up on Linux.
I say as a back-up because the Browser Widget is more than just a viewer, it's two-way communication between Javascript <> XTalkScript, which is what makes it interesting to me. I'm not sure how one could facilitate similar polyglot programming using what is essentially a GUI-less external web browser?
Anyway, the best way to package it up so that it can be included in standalone is ...(and I swear to you I'm not pushing them for no reasons) by packaging it as an Extension / Widget. That does NOT mean you would have to learn XTention Builder language.
xTScript Libraries can also be extensions (just as OXT General Music Lib is script), and
Extensions can contain their own 'resources' folder (which could contain a binary executables I suppose) which could then be included when the Extension is copied into a standalone.
I've been thinking it may be possible to 'borrow' from something like the Free Pascal Compiler community's work, and wrap their FPC Library that makes WebKitViews, packaged as a Widget Extension, then use that on all platforms for consistency.
https://wiki.freepascal.org/fpwebview
A thing I'm not sure about is that Microsoft license for their WebKit dll which is used on the Windows version of it:
https://github.com/PierceNg/fpwebview
A quick read looks like it is a rather liberal license.
I think I'm going to try to do some experiments. I have some plain C code saved that creates a WebKit view inside a GTK window.
https://webkitgtk.org/reference/webkit2 ... bView.html
It might be helpful to look at Trevor Devore's XTension Builder wrapper for making a WebKit view:
https://github.com/trevordevore/lc-maco ... webkit.lcb