Power Management - Desktop file entry
Introduction:
The Intel AppUp(SM) developer program recommends developers to provide information about their application for efficient power management. The information collected pertains to categorizing applications as background/foreground. The relevant information should be included in the .desktop file that will be packaged with the RPM. Device manufacturers will use this information for power assessment and management. This ensures that your application is not starved of the resources it needs to run in the background and ensure proper application behavior. All MeeGo applications submitted on or after July 21st 2011 will be subject to this recommendation.
Desktop file entry:
Identify if your application is background or foreground. An application can be considered a background app if it can execute its primary functionality without user interaction and/or user input. It is acceptable to have a background app require some initial settings or user preferences. Guidelines and some examples for choosing the right category is provided in the article: http://appdeveloper.intel.com/en-us/article/power-management-faq. If you believe your application meets the criteria for background application, include the below entry in the .desktop file for your application: X-MEEGO-CGROUP-PATH=unlimited Please ensure that your application package and the .desktop file requirements comply with MeeGo compliance. The desktop file entry mentioned in this article is in addition to the mandatory fields required by MeeGo compliance and is not a substitute for it.
A sample desktop file:
This example shows all the fields that a .desktop file should have in order to be MeeGo compliant and indicate it is a background app. [Desktop Entry] Name=AppName GenericName=AppGenericName Comment=This is a test app Exec=/opt/domain.company.appname/AppName Categories=Utilities; Icon=/usr/share/icons/128X128/App.png Type=Application X-MEEGO-CGROUP-PATH=unlimited In the above example, Name, Comment, Exec, Categories, Icon and Type indicate mandatory fields in the .desktop file. X-MEEGO-CGROUP-PATH is the recommended field for power management.