Bug#490670: goplay: implement button "start this application"
    RalfGesellensetter 
    rgx at gmx.de
       
    Mon Jul 14 16:52:57 UTC 2008
    
    
  
Hi Peter & thanks for your positive feedback.
Am Sonntag 13 Juli 2008 schrieb Peter De Wachter:
> to figure out the correct command to ...
what I do usually when the $packagename does not 
include /usr/bin/$packagename is a
apt-file list $packagename |grep "usr/bin/"
	... resulting in:
$packagename: /usr/bin/$binaryname
Sometimes there are default options, and here you might be right to 
check for
apt-file list $packagename |grep "usr/share/menu"
--> /usr/share/menu/$menuname
grep command /usr/share/menu/$menuname
-->  command="/usr/bin/$binaryname $options"\
This is straightforward - but would imply dependencies on apt-file. 
Additional, apt-file list commands are quite slow (expect 2-3 seconds 
per package).
It should be considered to add a command field per package (same pattern 
as for screenshos and infotext).
Regards
Ralf
    
    
More information about the Pkg-games-devel
mailing list