Bug 18008 - LXDE: update of the list of mime types handled by xarchiver in libfm
Summary: LXDE: update of the list of mime types handled by xarchiver in libfm
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory MGA5-64-OK
Keywords: validated_update
Depends on: 18050
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-15 12:54 CET by Nicolas Salguero
Modified: 2016-03-31 22:23 CEST (History)
3 users (show)

See Also:
Source RPM: libfm
CVE:
Status comment:


Attachments

Description Nicolas Salguero 2016-03-15 12:54:18 CET
Hi,

Xarchiver 0.5.4 supports more types of archive than the list provided in /usr/share/libfm/archivers.list.  This is particularly painful for ".tar.xz" archives: currently, when you right-click on such an archive, you do not have access to "Extract to" and "Extract here" options but to "Compress" option.

Best regards,

Nico.
Comment 1 Nicolas Salguero 2016-03-15 13:16:32 CET
Suggested advisory:
========================

The updated package allows all the types of archive handled by Xarchiver to be seen as archives, which allows a user, in pcmanfm, to right-click on a ".tar.xz" archive, for example, and to have access to "Extract to" and "Extract here" options in place of "Compress" option.
========================

Updated packages in core/updates_testing:
========================
i586:
lxshortcut-1.2.3-4.2.mga5.i586.rpm
libfm-1.2.3-4.2.mga5.i586.rpm
libfm-devel-1.2.3-4.2.mga5.i586.rpm
libfm4-1.2.3-4.2.mga5.i586.rpm

x86_64:
lxshortcut-1.2.3-4.2.mga5.x86_64.rpm
libfm-1.2.3-4.2.mga5.x86_64.rpm
lib64fm-devel-1.2.3-4.2.mga5.x86_64.rpm
lib64fm4-1.2.3-4.2.mga5.x86_64.rpm

Source RPMs:
libfm-1.2.3-4.2.mga5.src.rpm

Status: NEW => ASSIGNED
Assignee: bugsquad => qa-bugs

Comment 2 Nicolas Salguero 2016-03-16 11:33:06 CET
I forgot to mention that, to see the modification if you are already logged into LXDE, you need to log out and log into LXDE again.
Comment 3 Nicolas Salguero 2016-03-20 15:05:54 CET
I found that the mime type for ".tar.lzo" archives must be "application/x-tzo" and not "application/x-lzop-compressed-tar" so I updated my previous patch.

Updated packages in core/updates_testing:
========================
i586:
lxshortcut-1.2.3-4.3.mga5.i586.rpm
libfm-1.2.3-4.3.mga5.i586.rpm
libfm-devel-1.2.3-4.3.mga5.i586.rpm
libfm4-1.2.3-4.3.mga5.i586.rpm

x86_64:
lxshortcut-1.2.3-4.3.mga5.x86_64.rpm
libfm-1.2.3-4.3.mga5.x86_64.rpm
lib64fm-devel-1.2.3-4.3.mga5.x86_64.rpm
lib64fm4-1.2.3-4.3.mga5.x86_64.rpm

Source RPMs:
libfm-1.2.3-4.3.mga5.src.rpm
Comment 4 Nicolas Salguero 2016-03-21 14:24:04 CET
I also found that the mime type "application/x-compress" does not apply to tar.Z archives (only other *.Z files) so I added "application/x-tarz" to my previous patch.

Updated packages in core/updates_testing:
========================
i586:
lxshortcut-1.2.3-4.4.mga5.i586.rpm
libfm-1.2.3-4.4.mga5.i586.rpm
libfm-devel-1.2.3-4.4.mga5.i586.rpm
libfm4-1.2.3-4.4.mga5.i586.rpm

x86_64:
lxshortcut-1.2.3-4.4.mga5.x86_64.rpm
libfm-1.2.3-4.4.mga5.x86_64.rpm
lib64fm-devel-1.2.3-4.4.mga5.x86_64.rpm
lib64fm4-1.2.3-4.4.mga5.x86_64.rpm

Source RPMs:
libfm-1.2.3-4.4.mga5.src.rpm
Comment 5 Nicolas Salguero 2016-03-21 22:22:28 CET
When doing some tests, I found bug 18050.

Depends on: (none) => 18050

Comment 6 Nicolas Salguero 2016-03-22 10:04:57 CET
When testing the already present mime types, I found that libfm does not handle aliases so "application/x-deb" is not seen as "application/vnd.debian.binary-package" (the mime type for DEB archives).  So I added that mime type to my patch.

To sum up, the options "Extract to" and "Extract here" are now available when the selected files are: .arj, .bz, .tar.bz, .gz, .rar, .tar, .zip, .7z, .tar.gz, .bz2, .tar.bz2, .lzma, .tar.lzma, .deb, .xz, .tar.xz, .rpm, .lzo, .tar.lzo, .war, .Z, .tar.Z, .jar, .lha and .lzh.

Updated packages in core/updates_testing:
========================
i586:
lxshortcut-1.2.3-4.5.mga5.i586.rpm
libfm-1.2.3-4.5.mga5.i586.rpm
libfm-devel-1.2.3-4.5.mga5.i586.rpm
libfm4-1.2.3-4.5.mga5.i586.rpm

x86_64:
lxshortcut-1.2.3-4.5.mga5.x86_64.rpm
libfm-1.2.3-4.5.mga5.x86_64.rpm
lib64fm-devel-1.2.3-4.5.mga5.x86_64.rpm
lib64fm4-1.2.3-4.5.mga5.x86_64.rpm

Source RPMs:
libfm-1.2.3-4.5.mga5.src.rpm
Dave Hodgins 2016-03-25 07:53:31 CET

CC: (none) => davidwhodgins
Whiteboard: (none) => advisory

Comment 7 Lewis Smith 2016-03-28 22:15:29 CEST
Testing M5 x64
LXDE desktop, pcmanfm-1.2.3-2.1.mga5, xarchiver-0.5.4-1.1.mga5
Archive types to specifically test:
 .tar.xz
 .tar.lzo
 .tar.Z
 .deb

BEFORE the update:
Right-clicking in PCManFM archive files *not* on the list above, i.e. already correctly handled, showed on the context menu both Xarchiver *and* the 'Extract here' & 'Extract to' options.
Doing the same thing for the listed archive types did *not* show Xarchiver in the context menu; nor the two 'Extract' items. The latter is the bug.

Other archive programs installed were shown for all archive file types I tried, but not the 'Extract' context menu items unless Xarchiver was also listed.

AFTER the update:
 lib64fm4-1.2.3-4.5.mga5
 libfm-1.2.3-4.5.mga5
 lxshortcut-1.2.3-4.5.mga5
All archive types I tried, including files with the listed extensions, showed 'Extract here' & 'Extract to' in the right-click context menu from PCManFM.
However, Xarchiver was still *not* offered for the tested file types, same as before the update.
@Nicolas: please comment on this. From the 'before' test, it looked as if the 'extract' options came with Xarchiver; but this is clearly not so.
As previously, other archive programs were all shown, however.

Since this update does not relate to Xarchiver, and resolves the specific complaint, I deem it OK.

CC: (none) => lewyssmith
Whiteboard: advisory => advisory MGA5-64-OK

Comment 8 Nicolas Salguero 2016-03-29 10:49:26 CEST
(In reply to Lewis Smith from comment #7)
> @Nicolas: please comment on this. From the 'before' test, it looked as if
> the 'extract' options came with Xarchiver; but this is clearly not so.
> As previously, other archive programs were all shown, however.

I think those options came from the fact Xarchiver is present even if the files are not configured to be opened with it: I think libfm checks the file "/usr/share/libfm/archivers.list" from top to bottom and uses the configuration of the first archiver from that list (file-roller, xarchiver, squeeze, engrampa, ark) which is present in the system.
Dave Hodgins 2016-03-31 19:44:18 CEST

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 9 Mageia Robot 2016-03-31 22:23:17 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGAA-2016-0057.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.