Is Ark a wrapper for rar?

Before making a bug report, I should ask.

I use rar for a specific set of files (it has to be rar).
Rar was not part of the types Ark could handle at install, but manually installing rar made me able to, in Dolphin, right click a file > compress > compress to…
That way I could select rar and it worked flawlessly.

In plasma 6 however, doing that only shows a “success” window, but no file is created.
image
Using rar in cli works without problem.
Ie: rar a archive.rar files_to_compress

Using other compression methods in Ark work as well.

Since there is no error, I am not sure how to provide useful information for a bug report.

Please advice.

A bug is characterized by a unexpected outcome, this is a bug.

What you provided here is already good enough, a version and how to reproduce the bug with its symptoms. That’s all the information needed to fix the issue.

You can report that to bugs.kde.org for the ark application

1 Like

Preferred for Ark or Dolphin?
Yeah, I’ll just go hide in the corner and cry for a while… xD

Bug reported: 483748 – compressing using rar does not work

In the meantime you can choose RAR5 compression method in the dropdown, this works.

I don’t have that… Is that a plugin I can get somewhere?

I marked the bug as “normal” since I just open a terminal in Dolphin and type rar a, but it IS a slower workflow so if there is a workaround I would appreciate it.

I don’t think I ever did anything else than just installing rar. I got it from the Arch User Repository AUR (en) - rar which points to the latest version of https://www.rarlab.com. You sure you don’t see something like this?

image

Yeah, I installed it from AUR too.

$ pacman -Qii rar

Name            : rar
Version         : 7.00-1
Description     : A command-line port of the rar compression utility.
Architecture    : x86_64
URL             : https://www.rarlab.com
Licenses        : custom
Groups          : None
Provides        : unrar
Depends On      : gcc-libs
Optional Deps   : None
Required By     : None
Optional For    : ark  mc  okular
Conflicts With  : rar-beta  unrar
Replaces        : None
Installed Size  : 1466,56 KiB
Packager        : Unknown Packager
Build Date      : 2024-02-29T13:53:39 CET
Install Date    : 2024-02-29T13:53:47 CET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
Backup Files    :
UNMODIFIED      /etc/rarfiles.lst

That is very odd…

No, wait, you are under the compression sub-menu, YOU ARE CORRECT!!
Thank you!! :heart:

Now the question is, how do I make that standard so I don’t have to do that every time. :slight_smile:

Dunno, maybe it reads some config file that you could try out, otherwise it could be another bug report about how it doesn’t remember the last selected option :wink:

I just added the info as a comment on the initial report.
Most likely RAR4 that no longer works for some reason that is causing this issue in the first place.

The following is an extract from the ‘whatsnew.txt’ file in the official RarLabs rar 7.0.0 package:

RarLabs have removed the ability to compress using RAR4 compression; and so when RAR4 compression is selected (currently the default for KDE/ARK), the action fails. The default compression needs to now be RAR5 and the ability to select RAR4 should be removed.

I have added a note after Bedna’s bug report; to hopefully clarify the situation and possibly save wasted time for whosoever is assigned to the task.

This has been my first KDE Discuss post; welcome to me.

Cheers.

4 Likes

Welcome and THANK YOU for that! :heart:

edit
I just checked the bug report. Hejsan där… xD
I have pretty much left that forum for… reasons… I only read the release posts and report if I find a bug or something. :frowning:

Again, thank you for the clarification.

Welcome to you, nice research, very helpful.

Thanks for commenting, though it was only logical progression, really:

  • recent critical security bugs in RAR;
  • RAR4 compression due to be dropped in the foreseeable future, regardless;
  • new RAR version 7.x released ahead of schedule;
  • check “what’s new”

Cheers. :slight_smile:

2 Likes

re: pull request - the whole -ma[45] thing has gone from options too - rar.txt

~> diff rar622.txt rar700.txt 
...
...
1215,1216c1182
<             This switch is supported only by RAR 5.0 format, so you
<             need to use -ma switch with it.
---
>             This switch is supported only by RAR 5.0 format.
1224c1190
<             rar a -ma -htb lists.rar *.lst
---
>             rar a -htb lists.rar *.lst
1413,1424d1378
<     -ma[4|5]
<             Specify a version of archiving format.
< 
<             By default RAR creates archives in RAR 5.0 format.
<             Use -ma4 to create RAR 4.x archives.
<             Use -ma5 or just -ma in case you need to override -ma4 saved
<             in configuration and force RAR to use RAR 5.0 format.
< 
<             This switch is used only when creating a new archive.
<             It is ignored when updating an existing archive.
< 
<
...
...