[Gambas-user] Creating excutibles in version 2

Laurent Carlier lordheavy at ...512...
Sun Sep 18 11:09:39 CEST 2005


PV a écrit :
> On 18/09/2005 00:59, Stefano Palmeri wrote:
> 
>> Alle 19:21, mercoledì 14 settembre 2005, Rob Kudla ha scritto:
>>
>>> I think you misunderstand. Â Konqueror *doesn't* run Gambas
>>> applications, despite the shebang. Â It prompts you for a program with
>>> which to open your application, ignoring the shebang line altogether,
>>> and displays a generic document icon for the application rather than
>>> its icon. Â This is true as of KDE 3.4, at least. Â Try it.
>>
>>
>>
>> Hi all. This is a little 3 steps HOWTO to make Konqueror run gambas
>> applications when you click on it.
>> Note: YOURKDE is the installation directory of KDE in your system. In
>> my Slackware 10.0 is /opt/kde. To know yours just type on console:
>> kde-config --prefix.
>>
>> 1) create the text file
>> YOURKDE/share/mimelnk/application/x-gambas.desktop
>> Edit it and add these lines:
>>
>> [Desktop Entry]
>> Encoding=UTF-8
>> Comment=Gambas Executable
>> Comment[it]=Eseguibile Gambas
>> Icon=binary
>> Type=MimeType
>> MimeType=application/x-gambas
>>
>> 2) create the text file "YOURKDE/share/applnk/.hidden/gbx.desktop" 
>> (see the dot before hidden) Edit it and add these lines:
>>
>> [Desktop Entry]
>> Exec=gbx -x
>> InitialPreference=1
>> MimeType=application/x-gambas
>> Name=gbx
>> Terminal=false
>> Type=Application
>>
>> WARNING: next file already exists!!! You have just to edit it... Be
>> carefull!!!
>>
>> 3) Edit the file "YOURKDE/share/mimelnk/magic" and add this line:
>> 0      string     #!/usr/bin/gbx    application/x-gambas
>>
>> That's all. Restart your kde session. The gambas executables
>> will have the generic icon "binary" and you will be able
>> to run them just clicking on them.
>>
>> Ciao,
>>
>> Stefano
>>
>> P.S. This is tested with kde 3.2.3 and Slackware 10.0
> 
> 
> Thanks Stefano, that's very useful information!
> 
> To create an alternative "user" configuration (so that upgrading to a
> new KDE version won't sweep your changes away) I created the files in
> point 1) and 2) in my personal KDE dir (simply change YOURKDE from
> /opt/kde to ~/.kde, Slackware 10.1, KDE 3.4).
> 
> Regarding point 3), instead of changing the "central" mime magic file,
> you can safely create a new directory ~/.kde/share/config/magic/.
> In this new directory, create a text file named gambas.magic with the
> same line as indicated by Stefano and finally restart the KDE session.
> 
> This way you won't touch any original conf files and you don't even need
> root access to make the changes.
> 
> Hope it helps.
> 
> Ciao,
> Piero
> 

And what about submission of this work to the KDE team ?

It perhaps will be include in the next major/bugfix release ?

Regards,

-- 

Laurent Carlier
jabber : LordHeavy at ...943...





More information about the User mailing list