TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: IT WOULD MEAN THAT WHOMEV
from: R.WIESER
date: 2019-11-10 19:30:00
subject: Re: pcmanfm - How to set

Dennis,

> Part of this may come back down to "file"...
>
> pi@rpi3bplus-1:~$ file -k -r  *.py

I'm sorry, but I don't get that.   I've gotten the idea that the desktop and
pcmanfm have their own way to determine a mimetype (as returned by "xdg-mime
query filetype"), but suddenly now the output of "file -k -r" / "file -i"
becomes relevant again ?    What the blases is going on there ?    How am I
to make sense of that ?

> Note how all three have the tag "ASCII text"... That likely
> triggers any application that handles "text/plain".

No.   It would mean that whomever wrote pcmanfm made a mess of things, and
that I do not (yet) believe.

> I suspect you can't reorder the list -- it's either alphabetical (based
> upon some field in the .desktop file)

Definitily not alphabetical, as I've seen 'Text editor" below "Thonny",
"LibreOffice writer" below "Text editor" and "Geany" below "mu".

> or it's the order the .desktop files
> were scanned when building the menu.

... and sometimes ordered differently.  Like a .c file having "Geany" and
than "Text editor", but a .txt file having them in the reverse order.

In other words, /something/ is influencing the order of the "open with"
entries - likely based on the files mimetype (but thats a guess).



As I could not find much of anything, I decided to remove the "mime-type="
line from the "/usr/share/applications/libreoffice-writer.desktop" file (and
calling "update-mime-database" just in case) and rebooting, but the
"libreoffice writer" entry was still there in the "open with" list. :-\
Any idea (what program I should use to get the changes I made accepted by
pcmanfm - if that is what it takes that is) ?

I've also spend quite a bit more time googeling, but have not found anything
further.  Other than someone, years ago, saying that info on what I want/try
to do should be easily findable.  Yeah, right :-|

I'm a bit put-off to be honest: Even the simpelest of things in relation to
the desktop and filebrowser (creating a desktop shortcut with icon, adding a
filetype, changing an "open with" list) are schrouded in
things-you-just-have-to-know, as related information is only sparsely and
fragmented available - if at all. :-(

Not funny, not funny /at all/.

Regards,
Rudy Wieser

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.