From kde-core-devel Mon Mar 02 19:30:18 2009 From: David Faure Date: Mon, 02 Mar 2009 19:30:18 +0000 To: kde-core-devel Subject: Re: Removing untrusted .desktop custom icons Message-Id: <200903022030.18994.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=123602227704501 On Sunday 01 March 2009, Roland Harnau wrote: > 2009/2/28, Michael Pyne : > > > I just use KDesktopFile::hasApplicationType() to see if I need to dig > > further, > > are there any other weird application launcher types that don't return true > > for hasApplicationType that I need to worry about? > > There are also launchers with Type=Service and Exec key used by > stand-alone daemons (e.g. kwalletd). Yep. So better replace hasApplicationType() with desktopGroup().hasKey("Exec"). -- David Faure, faure@kde.org, sponsored by Qt Software @ Nokia to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).