On 09/01/2026 12:12, R Frith-Macdonald wrote:
On 08/01/2026 21:50, Patrick Cardona wrote:

Hello Richard,

On 2026-01-04 20:47:52 +0100 R Frith-Macdonald <[email protected]> wrote:

I think there is something related to openURL service: I made more tests.

 An app wrapper (at least in the sense I'm familiar with) provides a script to launch a non-GNUstep program from a GNUstep app.  It doesn't open URLs.  If you actually meant SystemPreferences.app, I'm pretty sure it should only let you select the preferred app to open a URL depending on the scheme of the URL (from among the available apps that support that scheme).

While it's true that GNUstep app wrapper support does not provide any mechanism for the wrapped non-gnustep apps to open URLs on behalf of the GNUstep workspace (so you currently have to write a service to invoke the appropriate binary to open a URL), that's mostly because the wrapper support in GNUstep pre-dates the Cocoa/Apple APIs for opening URLs, rather than any technical problem.

So I have created a branch of the gui library (named app-wrapper-open-url) with code to implement opening a URL using an app wrapper, so you can try that out if you like.  Basically, when opening a URL rather than a file, the script in thew wrapper is invoked with -GSOpenURL rather than -GSFilePath,  and the info plist needs to contain the information about the URL schemes supported (example in the NSWorkspace class documentation after the example ofusing an app wrapper to open a file).


Reply via email to