mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 08:40:44 +00:00
* 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:
parent
97261ea781
commit
ad1fdfcb62
2 changed files with 18 additions and 2 deletions
|
@ -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>
|
2012-04-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/ObjectiveC2/runtime.c: Fi error calculating instance
|
* Source/ObjectiveC2/runtime.c: Fi error calculating instance
|
||||||
|
|
|
@ -102,8 +102,18 @@ main(int argc, char** argv, char **env)
|
||||||
fileContents = [NSMutableString stringWithCapacity: 200];
|
fileContents = [NSMutableString stringWithCapacity: 200];
|
||||||
[fileContents appendString:
|
[fileContents appendString:
|
||||||
@"[Desktop Entry]\nEncoding=UTF-8\nType=Application\n"];
|
@"[Desktop Entry]\nEncoding=UTF-8\nType=Application\n"];
|
||||||
[fileContents appendString:
|
list = [plist objectForKey: @"FreeDesktopCategories"];
|
||||||
@"Categories=X-GNUstep;\n"];
|
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"];
|
entry = [plist objectForKey: @"ApplicationName"];
|
||||||
if (entry != nil)
|
if (entry != nil)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue