summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins/asb-plugin-desktop.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-09-26 12:39:57 +0100
committerRichard Hughes <richard@hughsie.com>2014-09-26 12:39:57 +0100
commit577c3c3b159e1a903fd612673ad474c8c3ceba38 (patch)
tree18a31663db57dd5ef811cc39583b1c04772fdeae /libappstream-builder/plugins/asb-plugin-desktop.c
parent32a8720d93b8914c5362197381786b158f95166a (diff)
downloadappstream-glib-577c3c3b159e1a903fd612673ad474c8c3ceba38.tar.gz
Add an --enable-hidpi argument to appstream-builder
This changes the icon tarball format and the install location, so isn't backwards compatible.
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-desktop.c')
-rw-r--r--libappstream-builder/plugins/asb-plugin-desktop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-desktop.c b/libappstream-builder/plugins/asb-plugin-desktop.c
index f2a9793..759a673 100644
--- a/libappstream-builder/plugins/asb-plugin-desktop.c
+++ b/libappstream-builder/plugins/asb-plugin-desktop.c
@@ -231,6 +231,10 @@ asb_plugin_desktop_add_icons (AsbPlugin *plugin,
as_app_set_icon_kind (AS_APP (app), AS_ICON_KIND_CACHED);
asb_app_add_pixbuf (app, pixbuf);
+ /* is HiDPI disabled */
+ if (!asb_context_get_hidpi_enabled (plugin->ctx))
+ return;
+
/* try to get a HiDPI icon */
fn_hidpi = as_utils_find_icon_filename_full (tmpdir,
something,