UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Moderator: Forum moderators

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Post 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
rox-uextract.png (34.13 KiB) Viewed 410 times

@JakeSFR
Question, why does MimeType include "inode/directory"?
...that is a folder.

User avatar
JakeSFR
Posts: 277
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 159 times

Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Post 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!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Post 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

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Post 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

User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Post 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.

User avatar
JakeSFR
Posts: 277
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 159 times

Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Post 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!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
BarryK
Posts: 2738
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 135 times
Been thanked: 745 times

Re: UExtract-4.14 - A Universal/Utter/Ultimate/Uhatever Extractor

Post 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.

Post Reply

Return to “Utilities”