Adopted desktop file creation to current specification.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18268 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
uid65745 2003-12-24 23:26:49 +00:00
parent 82b785b3c5
commit dd36341678
2 changed files with 14 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2003-12-25 Fred Kiefer <FredKiefer@gmx.de>
* Tools/pl2link.m: Adopted to current OpenDesktop specification.
2003-12-23 23:33 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCharacterSet.m: Rename 'abstract' to 'abstractClass' and

View file

@ -96,10 +96,10 @@ main(int argc, char** argv, char **env)
}
fileContents = [NSMutableString stringWithCapacity: 200];
[fileContents appendString: @"[Desktop Entry]\nEncoding=UTF-8\nType=Application\n"];
entry = [plist objectForKey: @"ApplicationRelease"];
if (entry != nil)
[fileContents appendFormat: @"Version=%@\n", entry];
[fileContents appendString:
@"[Desktop Entry]\nEncoding=UTF-8\nType=Application\n"];
[fileContents appendString:
@"Version=0.94\nCategories=GNUstep\n"];
entry = [plist objectForKey: @"ApplicationName"];
if (entry != nil)
{
@ -107,6 +107,11 @@ main(int argc, char** argv, char **env)
if (destName == nil)
destName = [entry stringByAppendingString: @".desktop"];
}
entry = [plist objectForKey: @"ApplicationDescription"];
if (entry != nil)
{
[fileContents appendFormat: @"Comment=%@\n", entry];
}
entry = [plist objectForKey: @"NSIcon"];
if (entry != nil)
{
@ -120,6 +125,7 @@ main(int argc, char** argv, char **env)
{
[fileContents appendFormat: @"Exec=openapp %@.app\n", entry];
[fileContents appendFormat: @"#TryExec=%@.app\n", entry];
[fileContents appendFormat: @"FilePattern=%@.app;%@\n", entry, entry];
}
list = [plist objectForKey: @"NSTypes"];