[gnome-packagekit] trivial: Find icons even when DATADIR is not correct
- From: Matthias Klumpp <mak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] trivial: Find icons even when DATADIR is not correct
- Date: Wed, 27 Jul 2022 13:18:49 +0000 (UTC)
commit a36624de2cdc7940ee030da8f914bdeee7cb92ee
Author: Matthias Klumpp <matthias tenstral net>
Date: Wed Jul 27 15:18:16 2022 +0200
trivial: Find icons even when DATADIR is not correct
This is primarily a fallback and nice for development.
src/gpk-application.c | 2 +-
src/gpk-update-viewer.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index f33bff3b..e0c6a6db 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2739,7 +2739,7 @@ gpk_application_startup_cb (GtkApplication *application, GpkApplicationPrivate *
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
PKGDATADIR G_DIR_SEPARATOR_S "icons");
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
- "/usr/share/PackageKit/icons");
+ "/usr/share/gnome-packagekit/icons");
priv->control = pk_control_new ();
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index eb04ab13..a8511b25 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -2940,6 +2940,8 @@ main (int argc, char *argv[])
/* add application specific icons to search path */
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
PKGDATADIR G_DIR_SEPARATOR_S "icons");
+ gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
+ "/usr/share/gnome-packagekit/icons");
/* TRANSLATORS: title to pass to the user if there are not enough privs */
ret = gpk_check_privileged_user (_("Package Updater"), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]