You are not logged in.
Hi, i can't get webmin to recognize rar file. I've heard the mime of rar file has changed on the "shared-mime-info" package from "application/x-rar" to "application/vnd.rar"
I tried to contact the creator of webmin but i could't get to resolve it.
Thanks for the help.
Last edited by Keltere (2017-11-27 15:21:42)
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks but i've already tried to add a custom xml but it's not working, maybe i'm doing something wrong.
~/.local/share/mime/packages/application-x-rar.xml
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-rar">
<comment>foo file</comment>
<icon name="application-x-rar"/>
<glob-deleteall/>
<glob pattern="*.rar"/>
</mime-type>
</mime-info>
Offline
Is that screenshot from filemin aka the webmin html filemanager or from something else ?
Is unrar installed ?
Does installing full rar from aur make a difference ?
(Some programs expect to be able to use rar x instead of unrar to extract something)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Is that screenshot from filemin aka the webmin html filemanager or from something else ?
Is unrar installed ?
Does installing full rar from aur make a difference ?
(Some programs expect to be able to use rar x instead of unrar to extract something)
Yes it is from webmin.
I have installed both unrar and rar but nothing changed.
I've also tried to add custom mime on webmin but i can't add the dot so i don't know how to test vnd.rar
Offline
let's try to find out some details about the file in question and mime on your system, post the output of
file Capture.rar
file -i Capture.rar
file -kr Capture.rar
mimetype Capture.rar
mimeopen --ask Capture.rar
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Capture.rar: RAR archive data, v5
Capture.rar: application/x-rar; charset=binary
Capture.rar: RAR archive data, v5
- data
Capture.rar: application/vnd.rar
Please choose an application
Thanks for helping me, i hope we find a solution. Also a friend of mine has the same problem but on Manjaro so it's not only my problem.
Last edited by Keltere (2017-11-12 19:04:38)
Offline
Those outputs look ok, let's see what which application handles rar on your system.
$ xdg-mime query default application/x-rar
$ xdg-mime query default application/vnd.rar
I tried to contact the creator of webmin but i could't get a help to resolve it because is not webmin fault.
Even if this is not a webmin bug, information about how webmin html filemanager determines which filetypes can be extracted would help,.
Is there a bug ticket, mailing list thread about this ?
Last edited by Lone_Wolf (2017-11-13 11:55:32)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
No output at all on both the command. I've installed xdg-utils to test them.
This is the github issue i've opened some time ago, still searching for a solution.
Offline
That clarifies how webmin handles things.
your system does understand the rar mimetype, but doesn't have an application associated with it.
Try creating a .desktop file in ~/.local/share/applications , see https://wiki.archlinux.org/index.php/Desktop_entries .
I'm not exactly sure what it should contain, but taking /usr/share/applications/org.kde.ark.desktop as example, something like this might work :
# ~/.local/share/applications/unrar.desktop
[Desktop Entry]
MimeType=application/vnd.rar;application/x-rar;
Name=Unrar
Exec=unrar %U
Type=Application
Terminal=false
NoDisplay=true
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Now with both "xdg-mime query default application/vnd.rar" and "xdg-mime query default application/x-rar" it show me "unrar.desktop"
With "mimeopen --ask Capture.rar" i still have the same output "Please choose an application" but without any entry. I've checked webmin and still dosen't allow me to handle rar files.
Last edited by Keltere (2017-11-13 13:32:11)
Offline
I've tried to check for zip files and it has the same result as rar files except that zip files work on webmin. I think that the problem is with webmin not with arch or shared-mime-info... I've tried to edit those files but it's still not working.
/opt/webmin/authentic-theme/extensions/file-manager/extract.cgi
/opt/webmin/filemin/extract.cg
Offline
on my system compressed files are handled by ark and mimeopen --ask somerarfile does list ark .
Please install ark to test whether this is same for you.
If mimeinfo does recognize ark, check if webmin also recognizes rar files with ark installed.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I'm using a remote server with no gui, i've asked a friend to test it but it didn't resolve the problem. I just think i need to edit something in webmin i just don't know what.
Anyway thanks for the help, i really appreciate it.
Last edited by Keltere (2017-11-21 00:16:04)
Offline