Page 5 of 5
Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor
Posted: Tue Nov 05, 2024 12:51 pm
by BarryK
I'm uploading EasyOS Scarthgap 6.4.2 right now, with builtin UExtract 4.14, see my blog announcment about including UExtract:
https://bkhome.org/news/202411/uextract ... actor.html
I had to modify the PET to work properly in EasyOS, uploaded here:
https://distro.ibiblio.org/easyos/noarc ... es-noarch/
EasyOS sets mime handling automatically, with /usr/bin/build-rox-sendto, which also sets up mime handling for other apps, not just rox-filer.
There were a few other minor changes I made to the PET, such as lots of translations for pet.specs.
Works nice when right-click:
- rox-uextract.png (34.13 KiB) Viewed 208 times
@JakeSFR
Question, why does MimeType include "inode/directory"?
...that is a folder.
Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor
Posted: Tue Nov 05, 2024 2:38 pm
by JakeSFR
BarryK wrote: ↑Tue Nov 05, 2024 12:51 pm
@JakeSFR
Question, why does MimeType include "inode/directory"?
...that is a folder.
Oh, that's because in the latest version I added an option to recursively traverse directories.
Greetings!
Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor
Posted: Wed Nov 06, 2024 2:09 am
by BarryK
To clarify, regarding the "other changes" I made to the PET, they were minor and in some cases just personal preference.
I added more translations to pet.specs
Created /usr/bin/uextract for the gui, and /usr/bin/uextract-cli, removed /usr/local/bin/uextract
Renamed /usr/local/apps/UExtract/uextract to uextract-cli
The icon renamed to lower-case uextract.png
The main change was pinstall.sh and puninstall.sh removed
/usr/local/apps/UExtract/UExtract.desktop removed
and MimeType put into /usr/share/applications/uextract.desktop
When a PET is installed or removed, MimeType field is read and /usr/bin/build-rox-sendto runs.
So rox menu gets automatically setup.
build-rox-sendto also updates /usr/share/applications/mimeapps.list, that many apps read to determine mime handling.
For any woof-CE developer who might be interested, here is build-rox-sendto:
https://github.com/bkauler/woofq/blob/m ... rox-sendto
And in /usr/local/petget/installpreview.sh can see example where build-rox-sendto gets called:
https://github.com/bkauler/woofq/blob/m ... preview.sh
Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor
Posted: Wed Nov 06, 2024 2:32 am
by BarryK
JakeSFR wrote: ↑Tue Nov 05, 2024 2:38 pm
BarryK wrote: ↑Tue Nov 05, 2024 12:51 pm
@JakeSFR
Question, why does MimeType include "inode/directory"?
...that is a folder.
Oh, that's because in the latest version I added an option to recursively traverse directories.
Greetings!
I have removed "inode/directory;inode/mount-point;" from MimeType, see post here for reasons (bugnaw333 is running chromium):
viewtopic.php?p=135036#p135036
Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor
Posted: Wed Nov 06, 2024 5:55 am
by BarryK
/usr/share/applications/mimeapps.list has this in it:
Code: Select all
inode/directory=ROX-Filer.desktop
inode/directory=lite-xl.desktop
inode/directory=uextract.desktop
inode/mount-point=uextract.desktop
It looks like Chromium uses the last inode/directory entry.
I could also remove "inode/directory" from the MimeType entry in lite-xl.desktop; however, just removing it from uextract.desktop was enough, and clicking on that "folder" icon in Chromium opened in rox, as required.
So I don't know what rules Chromium follows to decide. Alphabetical?
This is probably a subject that @MochiMoppel knows a lot about.
Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor
Posted: Wed Nov 06, 2024 11:19 am
by JakeSFR
Yeah, this kind of a mess is why I didn't decide to put MIME types in the main .desktop file after all: viewtopic.php?p=114284#p114284
This way only ROX (and Thunar) are supported, but in much more predictable and clean way.
Greetings!
Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor
Posted: Wed Nov 06, 2024 10:50 pm
by BarryK
BarryK wrote: ↑Wed Nov 06, 2024 5:55 am
/usr/share/applications/mimeapps.list has this in it:
Code: Select all
inode/directory=ROX-Filer.desktop
inode/directory=lite-xl.desktop
inode/directory=uextract.desktop
inode/mount-point=uextract.desktop
It looks like Chromium uses the last inode/directory entry.
I could also remove "inode/directory" from the MimeType entry in lite-xl.desktop; however, just removing it from uextract.desktop was enough, and clicking on that "folder" icon in Chromium opened in rox, as required.
So I don't know what rules Chromium follows to decide. Alphabetical?
I got the format of mimeapps.list wrong. It is supposed to be like this:
Code: Select all
inode/directory=ROX-Filer.desktop;lite-xl.desktop;uextract.desktop
And the leftmost one is the default.
OK, I will fix build-rox-sendto to build mimeapps.list with the correct format.