Thread: MyMenu
View Single Post
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#54
Originally Posted by benny1967 View Post
This is certainly a chicken-egg problem. No developer will ever put Categories in his .desktop-files if they go unused on the N900.
You could use the sections which a user has found to get the app:

Code:
for i in *.desktop; do
  PKG=`dpkg -S "${i}"`
  SECTION=`apt-cache show "${PKG}" | grep ^Section: | cut -d' ' -f 2
}
This is useful for the user and also aligns with #3822.

So why not write to the .desktop file in case it doesn't already include a category (or in case the category needs to be changed) and then always read from the .desktop file when you have to determine where to put an application?
Changing a third party package's files to shuffle things around isn't very polite.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following User Says Thank You to Jaffa For This Useful Post: