General TC > Programming & Scripting - Unofficial

minimalistic approach to MIME types / filetype associations

<< < (3/5) > >>

GNUser:
Thanks for catching that. I went ahead and deleted the unused variables and misleading comments from the tinyopen script.
The tinyopen script and its config file should both be in the  mime  directory, as stated in the README.
There's nothing you need other than the  mime  directory (and its contents) and the  mime-links  script.

aus9:
I went ahead with my usr/local pathways and testing in spacefm works really well. I know you have mentioned that web browsers and file manager "make up their own rules", so my web browser still complains on start up which I can live with.
Luckily I found a command to fix pcmanfm, from desktop-file-utils


--- Code: ---update-desktop-database ~/.local/share/applications
--- End code ---

sorry if I drift off topic but hope this helps TC members

GNUser:

--- Quote from: aus9 on July 25, 2020, 10:06:17 AM ---my web browser still complains on start up which I can live with.

--- End quote ---
You shouldn't have to live with it if you don't like it :) Which web browser do you use? What is it complaining about?

If the complaint has something to do with filetype associations, a general fix might go something like this:
open the browser -> Edit -> Preferences -> Preferred Applications -> manually associate all filetypes with tinyopen

GNUser:
P.S. If there are an additional one or two users who would be interested in tinyopen as a TCL extension, I'd be happy to put one together. Just let me know.

GNUser:
I gave  tinyopen  another overhaul and submitted it as an extension for TCL11.x x86_64 (it's just a shell script, so it would work in other architectures as well).

Now it's dead simple to use:

1. Load the extension
2. Edit ~/.config/tinyopen.conf to your liking

PS: The extension works differently (more polished) than the  tinyopen  version on my GitHub page, so please disregard the documentation on GitHub. The documentation in the  .info  file is correct for the TCL extension.

PS2: I will attach the extension and .info file here for convenience. The only dependency is glib2.tcz.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version