Bug#490670: goplay: implement button "start this application"

Petter Reinholdtsen pere at hungry.com
Thu Feb 9 14:50:31 UTC 2012


[Petter Reinholdtsen]
> +		if (0 == line.find("/usr/share/applications/")
> +		    && 0 < line.find(".desktop")) {

I discovered that this is a bug.  The code should look like this:

  	     if (0 == line.find("/usr/share/applications/")
	     	    && line.npos != line.find(".desktop")) {

With this change, the packages with .desktop files in
/usr/share/applications/kde4/ also work (see for example marble for a
package triggering this problem).
-- 
Happy hacking
Petter Reinholdtsen





More information about the Pkg-games-devel mailing list