Re: No Service matching 'OpenURL'
Patrick Cardona <[email protected]> Wed, 03 Dec 2025 11:19:51 +0100
| Newsgroups | gmane.comp.lib.gnustep.general |
|---|---|
| Message-ID | <fa7c7a77b885765efd5cda70dfbb3146@pi400> |
Hello Richard, Hello All, On 2025-12-02 19:30:41 +0100 R Frith-Macdonald <[email protected]> wrote: > > On 02/12/2025 15:55, Patrick Cardona wrote: >> Hello, > >> As we already discussed about the needed service to provide an openURL >> action, I tried to set some... > >> - First stage: trying to get a working service to open an URL selected in a >> text. > >> But it is not yet successful. I have not the error message, "Failed to >> contact service provider for 'Open URL'", but nothing happens when I use >> the menu "Services > Open URL". > >> I am attaching a basis of that work: > >> <GNUmakefile><openURLServiceInfo.plist><service.m> > >> Maybe you will find something obvious I am not able to see > > > Sorry, I'm on my way out for the evening to a whiskey tasting, so I can't > look at your code at the moment (and I won't be fit to do so later). > > However, there's a working example at > https://github.com/gnustep/tests-examples in gui/ExampleService/example.m > > To get it in place you run > > make install > > followed by > > make_services > > > To test, highlight some text (eg in Ink.app) and select the appropriate > services menu item. So I simplified and adapted the code, built and installed the service. I logged out to be sure the service is available. And finally I got the expected menu under 'Services' with 'Open URL' action ('Ouvrir URL' in my French context) while selecting an URL in a text within TexTEdit or Ink. But I got then this error: Failed to contact service provider for 'Open URL' > > > The code tries to use mozilla by default, but you can set the NSWebBrowser > default to be the format string to create the appropriate command to open the > URL using another browser. > I also installed firefox and tweaked the code to use the '-url' option, not '-remote'. I attached the code adapted from 'tests-examples': which is my second attempt, not the same code I provided previously. <openURLService.tar.gz> and a screenshot of the error: <screenshot_2025-12-03_at_10:57:56.png> Cheers, 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, 3.3 KB) - not displayed
screenshot_2025-12-03_at_10:57:56.png
(image/png, 227.9 KB) - not displayed