Function was checking globals when it really shouldn't. Check this page. You're viewing a simple category but the category path at the top shows an application: http://appdb.winehq.org/appbrowse.php?catId=82&appId=1166 Changelog: Let make_cat_path() make use of arguments instead of globals.