diff --git a/src/panel/widgets/window-list/toplevel.cpp b/src/panel/widgets/window-list/toplevel.cpp index 3f6e36e..9bcefdd 100644 --- a/src/panel/widgets/window-list/toplevel.cpp +++ b/src/panel/widgets/window-list/toplevel.cpp @@ -665,11 +665,7 @@ Icon get_from_desktop_app_info(std::string app_id) std::vector prefixes = { "", - "/usr/share/applications/", - "/usr/share/applications/kde/", - "/usr/share/applications/org.kde.", - "/usr/local/share/applications/", - "/usr/local/share/applications/org.kde.", + "org.kde.", }; std::vector app_id_variations = { @@ -690,8 +686,7 @@ Icon get_from_desktop_app_info(std::string app_id) { if (!app_info) { - app_info = Gio::DesktopAppInfo - ::create_from_filename(prefix + id + suffix); + app_info = Gio::DesktopAppInfo::create(prefix + id + suffix); } } }