Re: [Gambas-user] Gambas mime type
Lee, I sent a mail this morning to thank you - but it never reached the list (used the wrong mail account). I followed your first fix, and everything is working as expected. So, don't care, and thanks again! Matti Am 06.04.2016 um 17:37 schrieb T Lee Davidson: > Matti, > > I was wrong about the pattern in > "/usr/share/mimelnk/application/x-gambas3.desktop". That mimetype file is for > Gambas scripts, > not Gambas executables. > > And, I recommend ignoring my instruction to create > "~/.local/share/applications/gbr3.desktop". It might be much better to just > create the association in System Settings. > > Once there, go to Applications -> File Associations and search on "gambas". > There should be two there already which you can use > as examples to create a "x-gambas" type. You can switch back an forth between > the types as you create the new one. > > I chose the "application-x-gambas" icon from System icons, added "*.gambas" > as a filename pattern, described it as "Gambas > executable", and added "/usr/bin/gbr3" in Application Preference Order. > > Once I clicked Apply, the file, "~/.local/share/applications/gbr3.desktop", > was created and the mimetype database updated > automatically. > > > On 04/05/2016 09:47 PM, T Lee Davidson wrote: >> On 04/05/2016 03:17 PM, Matti wrote: >>> Unfortunately, I have to set up my system (openSUSE 42.1) completely new. >>> I installed Gambas 3.8.4 >>> fromhttp://download.opensuse.org/repositories/Education/openSUSE_Leap_42.1/, >>> and it runs ok as it did >>> before. >>> >>> But the packager seems to have made a mistake, as *.gambas files are >>> regarded as plain text documents and won't start by >>> clicking on them. >>> >>> So, does anyone know how to make KDE run *.gambas files automatically? >> Matti, >> >> I think the mistake in "/usr/share/mimelnk/application/x-gambas3.desktop" is >> the Patterns being set to "*.g;*.G". I tried >> correcting that to "*.gambas;*.Gambas" on my system. But, I got impatient >> and didn't want bother seeing if a reboot would cause >> the new pattern to be picked up. >> >> Here's a quick fix. >> >> Ensure that you have a file "~/.local/share/applications/gbr3.desktop" with >> the content: >> [Desktop Entry] >> Exec=/usr/bin/gbr3 >> MimeType=application/gambas; >> Name=gbr3 >> NoDisplay=true >> Type=Application >> >> (It can sometimes take a minute or so for the system to recognize changes in >> "~/.local/share/applications".) >> >> Then go to System Settings -> Applications -> File Associations. Search for >> "gambas". It should be: >> Filename patterns: *.gambas >> Description: application/gambas >> Application Preference Order: gbr3 >> >> If it's not there, add it. >> -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas mime type
Matti, I was wrong about the pattern in "/usr/share/mimelnk/application/x-gambas3.desktop". That mimetype file is for Gambas scripts, not Gambas executables. And, I recommend ignoring my instruction to create "~/.local/share/applications/gbr3.desktop". It might be much better to just create the association in System Settings. Once there, go to Applications -> File Associations and search on "gambas". There should be two there already which you can use as examples to create a "x-gambas" type. You can switch back an forth between the types as you create the new one. I chose the "application-x-gambas" icon from System icons, added "*.gambas" as a filename pattern, described it as "Gambas executable", and added "/usr/bin/gbr3" in Application Preference Order. Once I clicked Apply, the file, "~/.local/share/applications/gbr3.desktop", was created and the mimetype database updated automatically. On 04/05/2016 09:47 PM, T Lee Davidson wrote: > On 04/05/2016 03:17 PM, Matti wrote: >> Unfortunately, I have to set up my system (openSUSE 42.1) completely new. >> I installed Gambas 3.8.4 >> fromhttp://download.opensuse.org/repositories/Education/openSUSE_Leap_42.1/, >> and it runs ok as it did >> before. >> >> But the packager seems to have made a mistake, as *.gambas files are >> regarded as plain text documents and won't start by >> clicking on them. >> >> So, does anyone know how to make KDE run *.gambas files automatically? > > Matti, > > I think the mistake in "/usr/share/mimelnk/application/x-gambas3.desktop" is > the Patterns being set to "*.g;*.G". I tried > correcting that to "*.gambas;*.Gambas" on my system. But, I got impatient and > didn't want bother seeing if a reboot would cause > the new pattern to be picked up. > > Here's a quick fix. > > Ensure that you have a file "~/.local/share/applications/gbr3.desktop" with > the content: > [Desktop Entry] > Exec=/usr/bin/gbr3 > MimeType=application/gambas; > Name=gbr3 > NoDisplay=true > Type=Application > > (It can sometimes take a minute or so for the system to recognize changes in > "~/.local/share/applications".) > > Then go to System Settings -> Applications -> File Associations. Search for > "gambas". It should be: > Filename patterns: *.gambas > Description: application/gambas > Application Preference Order: gbr3 > > If it's not there, add it. > -- Lee __ "Artificial Intelligence is no match for natural stupidity." -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas mime type
On 04/05/2016 03:17 PM, Matti wrote: > Unfortunately, I have to set up my system (openSUSE 42.1) completely new. > I installed Gambas 3.8.4 > fromhttp://download.opensuse.org/repositories/Education/openSUSE_Leap_42.1/, > and it runs ok as it did before. > > But the packager seems to have made a mistake, as *.gambas files are regarded > as plain text documents and won't start by clicking on them. > > So, does anyone know how to make KDE run *.gambas files automatically? Matti, I think the mistake in "/usr/share/mimelnk/application/x-gambas3.desktop" is the Patterns being set to "*.g;*.G". I tried correcting that to "*.gambas;*.Gambas" on my system. But, I got impatient and didn't want bother seeing if a reboot would cause the new pattern to be picked up. Here's a quick fix. Ensure that you have a file "~/.local/share/applications/gbr3.desktop" with the content: [Desktop Entry] Exec=/usr/bin/gbr3 MimeType=application/gambas; Name=gbr3 NoDisplay=true Type=Application (It can sometimes take a minute or so for the system to recognize changes in "~/.local/share/applications".) Then go to System Settings -> Applications -> File Associations. Search for "gambas". It should be: Filename patterns: *.gambas Description: application/gambas Application Preference Order: gbr3 If it's not there, add it. -- Lee __ "Artificial Intelligence is no match for natural stupidity." -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas mime type
Here you have watched? http://gambas.8142.n7.nabble.com/gambas3-broken-after-opensuse-13-1-upgrade-td47482.html http://gambas.8142.n7.nabble.com/How-to-overcome-Bytecode-too-recent-Please-upgrade-Gambas-td46081.html Regards Gianluigi 2016-04-05 21:17 GMT+02:00 Matti: > Unfortunately, I have to set up my system (openSUSE 42.1) completely new. > I installed Gambas 3.8.4 from > http://download.opensuse.org/repositories/Education/openSUSE_Leap_42.1/, > and it runs ok as it did before. > > But the packager seems to have made a mistake, as *.gambas files are > regarded as plain text documents and won't start by clicking on them. > > So, does anyone know how to make KDE run *.gambas files automatically? > I only found http://gambaswiki.org/wiki/howto/autorun, which is very old > (gbr2). > > I have a file /usr/share/applications/gambas3.desktop with the content > [Desktop Entry] > Categories=Development;IDE; > Type=Application > StartupNotify=true > Terminal=false > Encoding=UTF-8 > Exec=gambas3.gambas > Name=Gambas3 > Icon=gambas3 > GenericName=Basic Development Environment 3 > GenericName[de]=Visual Basic ähnliche Entwicklungsumgebung 3 > Comment=Visual Basic like Development Environment 3 > Comment[de]=Eine Visual Basic ähnliche Entwicklungsumgebung 3 > > And a file /usr/share/mimelnk/application/x-gambas3.desktop with the > content > [Desktop Entry] > Type=MimeType > MimeType=application/x-gambasscript > Patterns=*.g;*.G > Icon=x-gambasscript > Hidden=false > X-KDE-IsAlso=text/plain > Comment=Gambas Document > Comment[af]=Gambas Dokument > ... > #SUSE-Overwrite Comment[sr@Latn]=Gambas dokument > ... > X-SuSE-translate=false > > Anybody an idea what to do? > Thanks, Matti > > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas mime type
Unfortunately, I have to set up my system (openSUSE 42.1) completely new. I installed Gambas 3.8.4 from http://download.opensuse.org/repositories/Education/openSUSE_Leap_42.1/, and it runs ok as it did before. But the packager seems to have made a mistake, as *.gambas files are regarded as plain text documents and won't start by clicking on them. So, does anyone know how to make KDE run *.gambas files automatically? I only found http://gambaswiki.org/wiki/howto/autorun, which is very old (gbr2). I have a file /usr/share/applications/gambas3.desktop with the content [Desktop Entry] Categories=Development;IDE; Type=Application StartupNotify=true Terminal=false Encoding=UTF-8 Exec=gambas3.gambas Name=Gambas3 Icon=gambas3 GenericName=Basic Development Environment 3 GenericName[de]=Visual Basic ähnliche Entwicklungsumgebung 3 Comment=Visual Basic like Development Environment 3 Comment[de]=Eine Visual Basic ähnliche Entwicklungsumgebung 3 And a file /usr/share/mimelnk/application/x-gambas3.desktop with the content [Desktop Entry] Type=MimeType MimeType=application/x-gambasscript Patterns=*.g;*.G Icon=x-gambasscript Hidden=false X-KDE-IsAlso=text/plain Comment=Gambas Document Comment[af]=Gambas Dokument ... #SUSE-Overwrite Comment[sr@Latn]=Gambas dokument ... X-SuSE-translate=false Anybody an idea what to do? Thanks, Matti -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user