diff --git a/src/panel/widgets/launchers.cpp b/src/panel/widgets/launchers.cpp index 406787f..7d8574e 100644 --- a/src/panel/widgets/launchers.cpp +++ b/src/panel/widgets/launchers.cpp @@ -34,8 +34,13 @@ struct DesktopLauncherInfo : public LauncherInfo Glib::RefPtr get_pixbuf(int32_t size) { - auto icon = app_info->get_icon()->to_string(); - auto theme = Gtk::IconTheme::get_default(); + auto icon = app_info->get_icon()->to_string(); + auto theme = Gtk::IconTheme::get_default(); + std::string absolute_path = "/"; + if (!icon.compare(0, absolute_path.size(), absolute_path)) + { + return Gdk::Pixbuf::create_from_file(icon, size, size); + } if (!theme->lookup_icon(icon, size)) {