[Gambas-user] Creating excutibles in version 2
Stefano Palmeri
rospolosco at ...152...
Sun Sep 18 00:59:09 CEST 2005
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
More information about the User
mailing list