Commit graph

12 commits

Author SHA1 Message Date
Dana Jansens
0d90bd57ab Add a new ObtLink type, which is going to be a generalization of a .desktop entry.
Move the .desktop file parsing details into obt/ddparse.c, which generates
  some hash tables holding the data of the file.
Add a new obt/link.c which will build an ObtLink from a parsed .desktop file,
  and may support other ways to create these links in the unforseeable future
2010-03-25 21:11:15 -04:00
Dana Jansens
749d6f0938 save key values based on their value, but we dont know what values they have yet 2010-03-25 19:31:57 -04:00
Dana Jansens
a1fa5dca08 add an empty function to parse the Desktop Entry group in a .desktop file 2010-03-25 18:11:13 -04:00
Dana Jansens
00fb4d392f parse key/value pairs from the .desktop file and save them in a hashtable 2010-03-25 18:11:13 -04:00
Dana Jansens
448cc6620e close the .desktop file after parsing it 2010-03-25 18:11:13 -04:00
Dana Jansens
159a3cb3b1 free the path after done with it 2010-03-25 18:11:13 -04:00
Dana Jansens
4e70343b3e g_warning adds a \n 2010-03-25 18:11:13 -04:00
Dana Jansens
5ca9c2e03c watch for groups in .desktop files and remember the current group. validate the names, and make sure no duplicates and "Desktop Entry" comes first 2010-03-25 18:11:13 -04:00
Dana Jansens
4968f7c62a avoid ascii control characters in strings 2010-03-25 18:11:13 -04:00
Dana Jansens
70e819a905 add beginning of .desktop file parsing, grabs a line of text from the input file at a time and strips out any \0 characters 2010-03-25 18:11:13 -04:00
Dana Jansens
0b9910b442 add some functions for parsing a value in a .desktop file 2010-03-25 18:11:13 -04:00
Dana Jansens
4d28614680 Add skeleton for start of dot-desktop-file parser 2010-02-16 22:10:07 -05:00