On 13/11/2025 23:03, Riccardo Mottola wrote:
Hi,
we have simple appwrappers supplied with gworkspace.
The infoplist contains
XAppWrapper = YES;
and this works for opening file in applications. There are
side-effects with GWorkspace, but it mostly works in the sense that
things open. If the app is reasonable, it will also open more files.
I would like to have this simple functionality also for Web Browsers.
There are already a couple of wrappers for browsers: firefox,
seamonkey, konqueror, iceweasel...
Now they don's seem to work. I think is becuase they do not register
CFBundleURLTypes
So I thought to add to the seamonkey wrapper:
CFBundleURLTypes = (
{
CFBundleURLName = "Web site URL";
CFBundleURLSchemes = (
http,
https
);
}
);
but it doesn't work. The wrapped app is seen in systempreferences
internet panel and I can select it. However, if I click on an URL this
do not work as expected.
Seamonkey opens or comes to front, nothing happens.
The calling app (e.g. GNUMail with a link) hangs and complains after a
while with No service matching 'OpenURL'
firefox comes and may open the link (or maybe not)
Check the NSWorkspace documentation for this. It provides an example
and explains how wrappers are used.
For opening local files you need the appropriate NSTypes specification
However, the question of why a particular web browser works or does not
work has nothing to do with GNUstep: it's all about theweb browser
itself and the shell script you provided to launch it (which you didn't
show in this email). Basically, the shell script must launch the
browser *and* tell the browser which file to open, in a way the browser
understands.