PackageKitGlib.Desktop

g GObject.Object GObject.Object PackageKitGlib.Desktop PackageKitGlib.Desktop GObject.Object->PackageKitGlib.Desktop

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_files_for_package (package)

get_package_for_file (filename)

get_shown_for_package (package)

open_database ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

priv

PackageKitGlib.DesktopPrivate

r

Class Details

class PackageKitGlib.Desktop(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

PackageKitGlib.DesktopClass

classmethod new()
Return type:

PackageKitGlib.Desktop

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:

GLib.Error

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:

GLib.Error

Returns:

package name, or None

NOTE: This method is unused and will be removed next time the library soname changes!

Return type:

str

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:

GLib.Error

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.

open_database()
Raises:

GLib.Error

Returns:

True if opened correctly

Return type:

bool

This method is unused and will be removed next time the library soname changes!

New in version 0.5.3.