Hi mdwolfe. I will try and answer this question but if succeed it will be a minor miracle, firstly because before I read your post I had never even heard of gambas, and that doesn't make troubleshooting any easier, and secondly because you are saddled with that hopeless piece of garbage that the gnome project seem to think is an acceptable file manager - Nautilus.
However here goes with my best shot. I apologise profusely that this is so ridiculously difficult when it should be ridiculously easy - although maybe someone else will come up with a better way.
Do you have a file called /usr/share/applications/gambas or /gambas.desktop? If you don't have a look in ~/.local/share/applications instead and see if it is there. If you don't have one in either location skip the next few instructions, I have tried to deal with that eventuality further down the page.
If you do have the desktop file in one of those locations then that is a start at least. You wont be able to open it because Nautilus is too dumb to let you, it will only run it. If you had a decent file manager as I do, you would be able to open it but sadly you don't because you haven't been given one, and that really is pretty shocking in itself, and in no way your fault. So we have to go about it another way.
Continuing to look in that same location/s look for a folder called /usr/share/applications/mimeinfo.cache, or ~/.local/share/applications/mimeapps.list this is where the list of file type associations is kept. You will need to modify this with a text editor (and if your gambas desktop file is in /usr/share/xxxxxx you will need to have sudo privileges to do this, so - sudo gedit - ) for the ~/.local/xxxxx location you wont need sudo.
You need to add to one or other of these files a couple of lines line like this:
- Code: Select all
Now I must add here that those mime types are ones that I have been able to glean by going online and searching, they may not be the only two that you need, I don't know as I don't use gambas you may have to research this further if those two alone don't work.
So, what if you don't have a 'gambas' desktop file in either location?
Answer, you have to write one yourself. It is only a text file so you just right click on one of the locations above and select 'Create new document'/Empty Document. After that what you put in will look something
- Code: Select all
Then save it as gambas.desktop.
I cannot stress strongly enough that almost every entry that I have written in that file is guesswork and MUST be verified by you first (you can't do any damage by writing it as I have written it, but it more than likely wont work). I repeat I know nothing about this program and so cannot possibly write a correct desktop file for this program.
And that is all it is
I really hope for your sake that somebody else comes up with a better way