PackageKitGlib.Desktop¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class PackageKitGlib.Desktop(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
NOTE: This method is unused and will be removed next time the library soname changes!
New in version 0.5.3.
- get_files_for_package(package)¶
- Parameters:
package (
str
) – the package name, e.g. “gnome-power-manager”- Raises:
- Returns:
string array of results, free with g_ptr_array_unref()
NOTE: This method is unused and will be removed next time the library soname changes!
- Return type:
[
str
]
Return all desktop files owned by a package, regardless if they are shown in the main menu or not.
New in version 0.5.3.
- get_package_for_file(filename)¶
- Parameters:
filename (
str
) – a fully qualified filename- Raises:
- Returns:
package name, or
None
NOTE: This method is unused and will be removed next time the library soname changes!
- Return type:
Returns the package name that owns the desktop file. Fast.
New in version 0.5.3.
- get_shown_for_package(package)¶
- Parameters:
package (
str
) – the package name, e.g. “gnome-power-manager”- Raises:
- Returns:
string array of results, free with g_ptr_array_unref()
NOTE: This method is unused and will be removed next time the library soname changes!
- Return type:
[
str
]
Return all desktop files owned by a package that would be shown in a menu, i.e are an application
New in version 0.5.3.