Dennis,
>>No. Currently I'm getting a bit tired of this guessing game, and
>>instead want to find/have information. Sorry.
First off, my apologies for having put it that blunt. You've been nothing
than helpfull to me. But after having done my best for a number of days
and gotten nowhere I was near to just dropping (almost literally) the whole
(Raspberry Pi) thing.
> Unfortunately, that is going to require a LOT of Google (and man
> page) searches, trying various keywords.
I've been scouring the web for any-and-all info I could find for days now -
only to find stuff thats 5 years or more old (likely not applicable
anymore/to rapbian) from others wanting to know the same. No answers.
> For example, finding out how update-mime-database works led me to
I found similar, but saw that those and yours alike stop where the jucy bit
is supposed to start:: There is /no/ information about how the information
in there causes stuff to happen. In short, I can change stuff in that file,
but have zero idea what it actually results in.
And by the way, that last line there is right, but rather incomplete.
Remember those files in the /usr/share/mine/text folder you found stuff in ?
Those also get rewritten. As do a few others. Making changes in them
might look like a good idea, but on call to the database updater program and
they are gone. :-\
> gVim now shows up on Programming menu (beside on Accesories)
:-) I was not even looking at that (just the "open with" list you see
directly after rightclicking), but thats a nice find. It shows how the
grouping works.
> pi@rpi3bplus-1:~$ sudo vim /usr/share/mime/packages/freedesktop.org.xml
:-) You found it too. It was only after I took a peek in it that I realized
that that one is where the file-to-mimetype translation is taking place.
And yes, I've already been playing in it too. As a result I've given both
the python and python3 sourcefiles the same "Thonny", "Geany" order.
I already had the idea, if all else would fail, to change the name of the
"text/x-python" mimetype name to something else, and see how far I could go
(hey, a single change there ? That /should/ be easy to follow, right ? :-)
> Commented out
> -->
....
> Removing the text/plain subclass removed all the generic text editors
I assumed that that would happen, but wanted tho keep the "Text editor"
choice in the list. And, if I get my way, as the first entry (with, for
Python, "Thonny" as the second).
> So... It looks like I was able to "resort" the Open With > menu. It
> required using the Open with... sub-menu, [X] the Set selected flag,
> and select the one you want last (it will become the top). Repeat with
> each candidate so the previous selections get pushed down.
Thats a good one! I did not assume that the "open with" list would contain
the preferred-open-by entry.
> You have to do this for each different MIME type the files
> are identified as (eg; python vs python3).
:-) I think you've solved my problem there. Thanks.
And even without needing to dig deep into Linux innards and edit
configuration files !
Though I wil probably visit those innards anyway, just to see if-and-how I
can get those changes by editing config files - just to see if I can.
> NOTE: I'm still running the default file manager for Raspbian,
The same here.
> which I believe is Thunar.
I think that the name of my file manager is "pcmanfm". At least, I've been
using "sudo pcmanfm" for a while now to easily access and be able to edit
the files in the /user/share/mime (and other) subtrees.
> Don't know if the one you are running will behave the
> same way.
There is only one way to know ... Yep, it looks like it.
Furthermore, it survives an update-mime-database call (just thought to do a
quick test).
... Though I tried to open a Scratch2 project (dont ask) with the "text
editor", and now its a permanent entry in that list. :-|
Which means I will most likely have to do that digging anyway. :-)
Thanks for your help.
Regards,
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|