def getExec(filename): Logger.debug("ApplicationsDetection::getExec %s"%(filename)) cmd = LnkFile.getTarget(filename) if cmd is None: Logger.error("Unable to get command from shortcut '%s'"%(filename)) return None return cmd