* Tools/pl2link.m (main): Get the category from a new entry named

FreeDesktopCategories.
Patch by Philippe Roussel <p.o.roussel@free.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2012-04-18 08:34:08 +00:00
parent 6b7438a108
commit 63daf550ac
2 changed files with 18 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2012-04-18 Fred Kiefer <FredKiefer@gmx.de>
* Tools/pl2link.m (main): Get the category from a new entry named
FreeDesktopCategories.
Patch by Philippe Roussel <p.o.roussel@free.fr>.
2012-04-17 Richard Frith-Macdonald <rfm@gnu.org>
* Source/ObjectiveC2/runtime.c: Fi error calculating instance

View file

@ -102,8 +102,18 @@ main(int argc, char** argv, char **env)
fileContents = [NSMutableString stringWithCapacity: 200];
[fileContents appendString:
@"[Desktop Entry]\nEncoding=UTF-8\nType=Application\n"];
[fileContents appendString:
@"Categories=X-GNUstep;\n"];
list = [plist objectForKey: @"FreeDesktopCategories"];
if (list != nil && [list isKindOfClass: [NSArray class]] && [list count] > 0)
{
[fileContents appendString: @"Categories="];
[fileContents appendString: [list componentsJoinedByString: @";"]];
[fileContents appendString: @";\n"];
}
else
{
[fileContents appendString:
@"Categories=X-GNUstep;\n"];
}
entry = [plist objectForKey: @"ApplicationName"];
if (entry != nil)
{