uextract 4.11 + ripmime

Moderator: BarryK

Post Reply
don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

uextract 4.11 + ripmime

Post by don570 »

uextract 4.11 - the ultimate extractor - written by JakeSFR

I have converted it so it will work in Easy OS 5.6.3 and newer.
3 methods of operation - right click menu , drag to desktop icon , start menu app

uextract 4.11 plus ripmime is incuded to rip open mhtml and html files

uextract-easy_4.11_amd64.pet
Available download;
Size: 193k

https://drive.google.com/file/d/1WVmZnB ... sp=sharing
Some notes:
-to see terminal output there is option to tick in filepicker window
-iso will be extracted
-img or SFS files will not be extracted
-rar and 7z archives should be compatible but I didn't test.
- factdog (slack), deb, pets should extract properly. I didn't test rpm files
-If you make a desktop icon, then you can drag a file to archive or you can open from start menu
- If helper app isn't available (like unrar) then you will get a warning that file can't be extracted

I like to keep terminal open so I can see if there is a failure message.

Last edited by don570 on Sat Dec 02, 2023 6:37 pm, edited 8 times in total.
don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

script to make links

Post by don570 »

Here's an example to show how to make right click links.....
First zipped files, then debian packages , then pet packages...

Code: Select all

#!/bin/sh
cd  /etc; grep -q "Easy D" DISTRO_SPECS
if [ "$?" -eq 0 ]; then
mkdir -p /root/.config/rox.sourceforge.net/OpenWith/.application_zip
ln -fs /usr/local/apps/UExtract /root/.config/rox.sourceforge.net/OpenWith/.application_zip
mkdir -p /root/.config/rox.sourceforge.net/OpenWith/.application_vnd.debian.binary-package
ln -fs /usr/local/apps/UExtract  /root/.config/rox.sourceforge.net/OpenWith/.application_vnd.debian.binary-package
mkdir -p /root/.config/rox.sourceforge.net/OpenWith/.application_pet
ln -fs /usr/local/apps/UExtract  /root/.config/rox.sourceforge.net/OpenWith/.application_pet

fi


don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

Re: uextract works in easy os 435

Post by don570 »

I used the above method to make a pet file for uextract. see top post
There is one odd behaviour....

right click on SFS files gives all the files
Just chose uextract and it will work.

easy-uex-result.png
easy-uex-result.png (112.09 KiB) Viewed 1296 times
don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

Re: uextract

Post by don570 »

New version of Uextract 4.10b

All versions of Easy OS should be able to install the pet now.
I made the change to pinstall.sh file.
_____________________________________________

User avatar
BarryK
Posts: 2267
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 562 times

Re: uextract works in easy os including kirkstone

Post by BarryK »

To automatically create right-click menu entry for uextract, all that you need to do is create a "MimeType" entry in 'uextract.desktop'

For example, /usr/share/applications/petget.desktop:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Type=Application
NoDisplay=true
Name[bg]=петджет
Name[de]=petget
Name=petget
Exec=petget
Icon=pet16.xpm
MimeType=application/pet;application/x-deb;application/x-bzip-compressed-tar;application/x-xz-compressed-tar

If you look in /usr/local/petget/installpkg.sh, it calls /usr/sbin/build-rox-sendto, which will automatically create right-click menu entry if that MimeType parameter is in uextract.desktop

Alternatively, I could create an entry in build-rox-sendto for uextract. But it is better to use MimeType in the .desktop file as that is more under your control.

Note, if you uninstall uextract pet, /usr/local/petget/removepreview.sh will remove the right-click menu entry.

don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

uextract 4.11 + ripmime

Post by don570 »

uextract 4.11 + ripmime

New version available for Easy OS 5.6.3
Download in first post.

Notes :
app is named 'uextract' so the .desktop file is named uextract.desktop
The exec line is 'uextract'
/usr/local/bin/uextract is a link to 'AppRun'

screenshot-uextract-icon.png
screenshot-uextract-icon.png (56.79 KiB) Viewed 924 times

______________________________________________

don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

Re: uextract 4.11 + ripmime

Post by don570 »

Unfortunately the links are destroyed by Easy OS linux. They won't last.
I'll ask BarryK for his opinion.
____________________________

User avatar
BarryK
Posts: 2267
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 562 times

Re: uextract 4.11 + ripmime

Post by BarryK »

don570,
In the pet, delete the 'root' folder and everything in it.
Get rid of creating links in the pinstall.sh file also.

This is all that is required, the last line added to uextract.desktop:

[Desktop Entry]
Encoding=UTF-8
Name=uextract utility
Comment=Ultimate Extractor
Comment[pl]=Uniwersalny Rozpakowywacz
Comment[es]=Extractor de última generación
GenericName=Extractor
Exec=uextract
Terminal=false
Type=Application
Icon=uextract48.png
Categories=X-Utility
MimeType=application/xml;application/x-bzip-compressed-tar;application/x-flash-video;application/vnd.debian.binary-package;application/x-lzma;application/x-gzip;application/x-gettext-translation;application/x-raw-disk-image-compressed;application/x-shockwave-flash;application/x-tgz;application/x-ext3-image;application/x-delta;application/x-ext4-image;application/pet;application/x-raw-disk-image;application/x-shellscript;application/x-xz-compressed-tar;message/rtc822;application/gzip;application/zip;application/x-sharedlib;application/x-desktop;application/x-gnumeric;application/x-xz;application/x-tar;application/x-cd-image;application/x-compressed-tar;application/x-iso9660;application/x-tmd;application/x-mimearchive;application/x-ext2-image;application/x-java-archive;application/x-rpm;text/html;application/x-squashfs-imag;application/x-ogg;application/x-executable;application/x-deb;application/x-rar

with code tags:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=uextract utility
Comment=Ultimate Extractor
Comment[pl]=Uniwersalny Rozpakowywacz
Comment[es]=Extractor de última generación
GenericName=Extractor
Exec=uextract
Terminal=false
Type=Application
Icon=uextract48.png
Categories=X-Utility
MimeType=application/xml;application/x-bzip-compressed-tar;application/x-flash-video;application/vnd.debian.binary-package;application/x-lzma;application/x-gzip;application/x-gettext-translation;application/x-raw-disk-image-compressed;application/x-shockwave-flash;application/x-tgz;application/x-ext3-image;application/x-delta;application/x-ext4-image;application/pet;application/x-raw-disk-image;application/x-shellscript;application/x-xz-compressed-tar;message/rtc822;application/gzip;application/zip;application/x-sharedlib;application/x-desktop;application/x-gnumeric;application/x-xz;application/x-tar;application/x-cd-image;application/x-compressed-tar;application/x-iso9660;application/x-tmd;application/x-mimearchive;application/x-ext2-image;application/x-java-archive;application/x-rpm;text/html;application/x-squashfs-imag;application/x-ogg;application/x-executable;application/x-deb;application/x-rar

Then run this:

Code: Select all

# build-rox-sendto

...which happens automatically when a .pet is installed, or any change to .sfs loading, or a easyos version update.

don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

build-rox-sendto

Post by don570 »

I put together new package following BarryK suggestions
however I found that I needed to use 'build-rox-sendto' command
whenever the menu disappeared. This is awkward but I'm sure BarryK can solve this problem.

The problem lies in the 'Customise Menu' command which wipes out all right click menus for the file type.
I discovered this when right clicking on images like PNG format.

screenshot-customize.png
screenshot-customize.png (23.92 KiB) Viewed 765 times

_____________________________________________________________

User avatar
BarryK
Posts: 2267
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 562 times

Re: build-rox-sendto

Post by BarryK »

don570 wrote: Sat Dec 02, 2023 6:43 pm

I put together new package following BarryK suggestions
however I found that I needed to use 'build-rox-sendto' command
whenever the menu disappeared. This is awkward but I'm sure BarryK can solve this problem.

The problem lies in the 'Customise Menu' command which wipes out all right click menus for the file type.
I discovered this when right clicking on images like PNG format.
screenshot-customize.png

That's weird. I tested "Customise menu..." created a symlink in /root/.config/rox.sourceforge.net/SendTo/.image_png

The weird thing is that rox now ignores all the symlinks in /etc/xdg/rox.sourceforge.net/OpenWith/.image_png
These are global mime-handling, that will work for all users.

That is incorrect behaviour by rox. It should apply modifications for the root user, not completely ignore the global mime-handling.

I think that I will remove that "Customise menu..." right-click menu entry.

jamesbond
Posts: 533
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 71 times
Been thanked: 291 times

Re: build-rox-sendto

Post by jamesbond »

BarryK wrote: Sun Dec 03, 2023 1:04 am

That's weird. I tested "Customise menu..." created a symlink in /root/.config/rox.sourceforge.net/SendTo/.image_png

The weird thing is that rox now ignores all the symlinks in /etc/xdg/rox.sourceforge.net/OpenWith/.image_png
These are global mime-handling, that will work for all users.

That is incorrect behaviour by rox. It should apply modifications for the root user, not completely ignore the global mime-handling.

@BarryK, this is because /etc/xdg/rox.sourceforge.net/OpenWith/.image_png is deprecated. The correct location is /etc/xdg/rox.sourceforge.net/SendTo/.image_png

If you use the deprecated "OpenWith", it will continue to work - until it finds a "SendTo" (either in /etc/xdg/... or in /root/.config/...), it will ignore anything that is inside OpenWith, and only look for those in SendTo.

The better solution is not to remove "Customise menu...", but instead, rename "OpenWith" to "SendTo". I have tested this and it works correctly (both entries in /etc/xdg/... and /root/.config/... are shown if both use "SendTo" instead of "OpenWith").

User avatar
BarryK
Posts: 2267
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 562 times

Re: build-rox-sendto

Post by BarryK »

jamesbond wrote: Sun Dec 10, 2023 2:55 pm
BarryK wrote: Sun Dec 03, 2023 1:04 am

That's weird. I tested "Customise menu..." created a symlink in /root/.config/rox.sourceforge.net/SendTo/.image_png

The weird thing is that rox now ignores all the symlinks in /etc/xdg/rox.sourceforge.net/OpenWith/.image_png
These are global mime-handling, that will work for all users.

That is incorrect behaviour by rox. It should apply modifications for the root user, not completely ignore the global mime-handling.

@BarryK, this is because /etc/xdg/rox.sourceforge.net/OpenWith/.image_png is deprecated. The correct location is /etc/xdg/rox.sourceforge.net/SendTo/.image_png

If you use the deprecated "OpenWith", it will continue to work - until it finds a "SendTo" (either in /etc/xdg/... or in /root/.config/...), it will ignore anything that is inside OpenWith, and only look for those in SendTo.

The better solution is not to remove "Customise menu...", but instead, rename "OpenWith" to "SendTo". I have tested this and it works correctly (both entries in /etc/xdg/... and /root/.config/... are shown if both use "SendTo" instead of "OpenWith").

@jamesbond
That's great news!
Thanks for that fix, will implement it.

EDIT:
I just checked. Easy does have /etc/xdg/rox.sourceforge.net/SendTo, as a symlink to OpenWith

Same thing in /root; /root/.config/rox.sourceforge.net/OpenWith, and SendTo a symlink.

Hmmm, will experiment.

EDIT:
Changed both to "SendTo", but it works as before. Existence of /root/.config/rox.sourceforge.net/SendTo/.image_png causes /etc/xdg/rox.sourceforge.net/SendTo/.image_png to be ignored.

James, the rox source in Easy is different from yours probably. The source is from 2011:

http://distro.ibiblio.org/easyos/source ... ure.tar.gz

with these patches:

https://github.com/bkauler/oe-qky-kirks ... iler/files

jamesbond
Posts: 533
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 71 times
Been thanked: 291 times

Re: uextract 4.11 + ripmime

Post by jamesbond »

Ah, yes. I'm currently using this: https://github.com/jun7/rox-filer/ (jun7's fork of rox-filer), but before I migrated to that fork, I used the latest commit from the rox-filer's official git repo: https://github.com/rox-desktop/rox-filer since 2015 (for a few years). I remember that the problem was already fixed by then.

don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

mpv media player linking

Post by don570 »

Note to BarryK
I complained about right click menu back in EasyOS 5.4.5
viewtopic.php?p=93244#p93244
In version 5.5.5 a change was made
and In version 5.6.1 you made a change to 'SendTo"

This allowed me to make a link to an application desktop file in /usr/share/applications/
so I could run mpv media player at a faster speed (1.4X)
I just needed the appropriate execute line.

Code: Select all

Exec=mpv --speed 1.4 --player-operation-mode=pseudo-gui -- %U

It appeared to work if I remember correctly. :thumbup2:

Background:
viewtopic.php?p=92649#p92649

Screenshot 2023-12-11 19.01.09.png
Screenshot 2023-12-11 19.01.09.png (38.87 KiB) Viewed 446 times
Screenshot 2023-12-11 18.29.14.png
Screenshot 2023-12-11 18.29.14.png (55.24 KiB) Viewed 457 times
Post Reply

Return to “EasyOS”