OpenURL issue not fixed with an OpenURLService

Patrick Cardona <[email protected]> Mon, 08 Dec 2025 19:49:49 +0100
Newsgroups gmane.comp.lib.gnustep.general
Message-ID <cfc24420068db853609302de091cfac4@pi400>
Hello,

Until now, I was not able to fix the openURL issue.

Context:
- I added a wrapper 'Firefox.app'.
- The Default Web Browser in 'SystemPreferences > Internet' has been 
set to Firefox.app. Its Info-gnustep.plist contains the expected array 
'CFBundleURLTypes'.
- But the "firefox" word is not found in any .plist of 
'~/GNUstep/Defaults' folder.

I also installed an OpenURLService, did 'make_services' and 
successfully tested with a selected URL string. But this is not fixing 
the case of links within TextEdit nor GNUMail.

1) Without the link filter, when the string "https://www.gnustep.org" 
is selected,
in a text file, the menu 'Services > Open Selected URL' is available 
and it works to open the above URL in the default browser (firefox).

2) With the link filter: if I use 'Edit > Add link' menu within 
TextEdit, the related link (same URL as above) is created and 
highlighted (with the blue color and the expected pointer of the mouse 
over)
GNUstep.org
But when I click on the above link, nothing happens.

I guess in the case two:
- The mouseDown Event should handle the NSURL object with the openURL 
method.
- Something related to default Web Browser in NSWorkspace should 
handle both the default browser app and the openURL method.

So I guess my Service menu will never be useful to handle such case, 
because URL strings are not the same as NSURL objects.

How do you handle such links?



<openURLService.tar.gz>

Regards,
Patrick

-- 
Patrick Cardona - Pi400 - GNU/Linux aarch64 (Debian 13.2)
Xorg (1:7.7+24) - libcairo2 (1.18.4-1+rpt1 arm64)
Window Maker (0.96.0-4) - GWorkspace (1.1.0 - 02 2025) - Theme: 
AGNOSTEP - MUA: GNUMail (1.4.0)
openURLService.tar.gz (application/x-gzip, 2.2 KB) - not displayed