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> 2003-12-23 23:33 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCharacterSet.m: Rename 'abstract' to 'abstractClass' and * 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 = [NSMutableString stringWithCapacity: 200];
[fileContents appendString: @"[Desktop Entry]\nEncoding=UTF-8\nType=Application\n"]; [fileContents appendString:
entry = [plist objectForKey: @"ApplicationRelease"]; @"[Desktop Entry]\nEncoding=UTF-8\nType=Application\n"];
if (entry != nil) [fileContents appendString:
[fileContents appendFormat: @"Version=%@\n", entry]; @"Version=0.94\nCategories=GNUstep\n"];
entry = [plist objectForKey: @"ApplicationName"]; entry = [plist objectForKey: @"ApplicationName"];
if (entry != nil) if (entry != nil)
{ {
@ -107,6 +107,11 @@ main(int argc, char** argv, char **env)
if (destName == nil) if (destName == nil)
destName = [entry stringByAppendingString: @".desktop"]; destName = [entry stringByAppendingString: @".desktop"];
} }
entry = [plist objectForKey: @"ApplicationDescription"];
if (entry != nil)
{
[fileContents appendFormat: @"Comment=%@\n", entry];
}
entry = [plist objectForKey: @"NSIcon"]; entry = [plist objectForKey: @"NSIcon"];
if (entry != nil) if (entry != nil)
{ {
@ -120,6 +125,7 @@ main(int argc, char** argv, char **env)
{ {
[fileContents appendFormat: @"Exec=openapp %@.app\n", entry]; [fileContents appendFormat: @"Exec=openapp %@.app\n", entry];
[fileContents appendFormat: @"#TryExec=%@.app\n", entry]; [fileContents appendFormat: @"#TryExec=%@.app\n", entry];
[fileContents appendFormat: @"FilePattern=%@.app;%@\n", entry, entry];
} }
list = [plist objectForKey: @"NSTypes"]; list = [plist objectForKey: @"NSTypes"];