mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:40:38 +00:00
open some app that suppots the URL scheme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28094 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d93b330bd2
commit
d268c27a9e
2 changed files with 10 additions and 1 deletions
|
@ -808,9 +808,13 @@ static NSString *_rootPath = @"/";
|
|||
NSString *appName;
|
||||
|
||||
/* Look up an application to handle this URL scheme.
|
||||
* We get a dictionary containing all apps for the scheme.
|
||||
* FIXME ... we just use the last app in the dictionary,
|
||||
* but we really ought to have some way of saying which we want.
|
||||
*/
|
||||
map = [applications objectForKey: @"GSSchemesMap"];
|
||||
appName = [map objectForKey: [[url scheme] lowercaseString]];
|
||||
map = [map objectForKey: [[url scheme] lowercaseString]];
|
||||
appName = [[map allKeys] lastObject];
|
||||
if (appName != nil)
|
||||
{
|
||||
NSString *urlString = [url absoluteString];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue