Introduce Applications panel

This is an initial implementation of most of the
intended functionality for this panel. Flatpak
integration itself is implemented by spawning
"flatpak info -m $appid", which gives us the
metadata in key file format, and allows flatpak
to be a runtime dependency.

Even after removing the .desktop suffix, there can
still be a difference between the app ID generated
in this way and the flatpak ID, since flatpaks are
allowed to export files whose prefix is the flatpak
ID. Fix this by pulling the X-Flatpak key out of
the desktop file. This would cause trouble for
org.libreoffice.LibreOffice-math.
This commit is contained in:
Georges Basile Stavracas Neto 2018-11-16 15:42:54 -02:00
parent a800e97510
commit 1245fd787b
No known key found for this signature in database
GPG key ID: 886C17EE170D1385
28 changed files with 3842 additions and 0 deletions

View file

@ -386,6 +386,7 @@ static const gchar * const panel_order[] = {
"universal-access",
"online-accounts",
"privacy",
"applications",
"sharing",
"sound",
"power",

View file

@ -31,6 +31,7 @@
#ifndef CC_PANEL_LOADER_NO_GTYPES
/* Extension points */
extern GType cc_applications_panel_get_type (void);
extern GType cc_background_panel_get_type (void);
#ifdef BUILD_BLUETOOTH
extern GType cc_bluetooth_panel_get_type (void);
@ -83,6 +84,7 @@ extern void cc_wacom_panel_static_init_func (void);
static CcPanelLoaderVtable default_panels[] =
{
PANEL_TYPE("applications", cc_applications_panel_get_type, NULL),
PANEL_TYPE("background", cc_background_panel_get_type, NULL),
#ifdef BUILD_BLUETOOTH
PANEL_TYPE("bluetooth", cc_bluetooth_panel_get_type, NULL),