summaryrefslogtreecommitdiff
path: root/src/fr-init.c
AgeCommit message (Collapse)AuthorFilesLines
2023-06-14Update to change the fallback and fix gzip issueToyeesh Sinha1-3/+3
2023-03-22zstd: support both old and new mime typeĐoàn Trần Công Danh1-2/+3
As of it's now, we're supporting zstd {,de}compression with specific mime type that was reported by libmagic as configure time. Thus, the built binaries is not correct after upgrading file-devel after configure. In addition, this configure's time hard-coded value prevent our users from partial upgrade. Let's accept both mime types reported by both old and new file-devel. For the mapping between file extensions and mime types, let's choose the new mime value.
2021-12-11Use a blank line at mostrbuj1-27/+0
2020-10-17Add Electronic Publication (EPUB) supportrbuj1-0/+2
$ file -b --mime-type don-quijoti-epub3.epub application/epub+zip
2020-05-06Remove fr-stock.c and fr-stock.hrbuj1-3/+0
2020-03-10Add ARC archive supportrbuj1-0/+4
2020-02-15autoconf: get zstd mime type using libmagic if enabledrbuj1-2/+2
2019-12-01Check if a mime-type is an alias in compute_supported_archive_typesrbuj1-1/+14
For instance, application/x-lha is an alias of application/x-lzh-compressed, mime_type_desc.mime_type should only store non duplicated primary mime-types, to avoid duplicates in the warehouse.
2019-11-24Clean file type selection in new archive dialogrbuj1-55/+53
2019-11-20Automatically sets the maximum size of static arraysrbuj1-4/+4
2019-10-03Zstandard: read .tar.zst filesrbuj1-0/+2
$ tar cafv ~/test.tar.zst ~/test $ xdg-mime query filetype ~/test.tar.zst application/x-zstd-compressed-tar Test: $ CFLAGS="-g -O0" ./autogen.sh --enable-magic --enable-packagekit --prefix=/usr && make && sudo make install $ engrampa ~/test.tar.zst
2019-10-03Zstandard: Update MIME typerbuj1-2/+2
MIME type is application/x-zstd: $ lorem-ipsum-generator -p 10000 -l -f plain > lorem.txt $ zstd lorem.txt $ file -b --mime-type lorem.txt.zst application/x-zstd Test: $ CFLAGS="-g -O0" ./autogen.sh --enable-magic --enable-packagekit --prefix=/usr && make && sudo make install
2019-10-01Ar: Update MIME type and add magic numbersrbuj1-4/+4
Changes: Replace application/x-ar with application/x-archive ar magic number: "!<arch>\n" deb magic number (Debian 0.93+): "!<arch>\ndebian-binary" REF: https://en.wikipedia.org/wiki/Ar_(Unix) https://en.wikipedia.org/wiki/Deb_(file_format) Test: $ touch a && touch b && ar r test.ar a b && cp test.ar test-2.a $ xdg-mime query filetype test.ar application/x-archive $ xdg-mime query filetype dftp_2.2-1.deb application/vnd.debian.binary-package $ gio info test.ar | grep content-type standard::content-type: application/x-archive standard::fast-content-type: application/x-archive $ gio info dftp_2.2-1.deb | grep content-type standard::content-type: application/vnd.debian.binary-package standard::fast-content-type: application/vnd.debian.binary-package $ hexdump -C -n 8 test.ar 00000000 21 3c 61 72 63 68 3e 0a |!<arch>.| 00000008 $ hexdump -C -n 21 dftp_2.2-1.deb 00000000 21 3c 61 72 63 68 3e 0a 64 65 62 69 61 6e 2d 62 |!<arch>.debian-b| 00000010 69 6e 61 72 79 |inary| 00000015 $ ./autogen.sh --prefix=/usr --disable-magic && make && sudo make install
2019-09-22LHA: Fix internet media typerbuj1-3/+3
LHA media type is application/x-lzh-compressed $ file --mime-type ~/test.lzh /home/robert/test.lzh: application/x-lzh-compressed
2019-08-28comparison of integers of different signs: 'int' and 'guint'rbuj1-9/+9
Fix compiler warning: comparison of integers of different signs: 'int' and 'guint' (aka 'unsigned int') [-Wsign-compare]
2019-07-30Add zcompress supportSergey Ponomarev1-0/+2
2019-03-06Support .udeb package formatVictor Kareh1-2/+4
This enables support for udeb (micro-deb) files, which are a package format used during bootstrapping a Debian installation. They have the same mimetype as regular deb files.
2019-03-06Clean-up archive list and descriptionsVictor Kareh1-55/+55
2018-11-10Added support for brotli (*.tar.br) compressed tar archivesSergey Ponomarev1-0/+2
2018-10-30Add brotli supportSergey Ponomarev1-0/+2
2018-08-01Add support for OpenDocument formatsVictor Kareh1-0/+12
2018-06-03Add .a (Ar) supportPablo Barciela1-0/+2
Fixes https://github.com/mate-desktop/engrampa/issues/198#issuecomment-394156805
2016-07-10replace WindowList with gtk_application_get_windowsZenWalker1-1/+0
file-roller commit: https://git.gnome.org/browse/file-roller/commit/?id=f4f31f1c9e897fe32114d2ef1b21e232231c3a3b
2016-05-01Give unrar priority over p7zipsvonohr1-1/+1
At the moment p7zip does not support RAR5 archives, so reading such archives will always fail.
2014-11-22fixed missing prototype warninginfirit1-7/+7
From FR commit: fe3e6aa60ff370fb21475cf621fd86ad78c9303a From: Paolo Bacchilega <[email protected]>
2014-11-22Fix warningsinfirit1-3/+3
2014-11-22do not call release_data if the data was not initializedinfirit1-1/+2
Based on FR commit: 05c0b2c366f5524645167d9dca2268219563559d From: Paolo Bacchilega <[email protected]>
2014-11-22Added a D-BUS service to create and extract archives.infirit1-0/+666
Initial commits from FR: f998fd8e33a08d686a1071db87d21f4a83963d99 4078d1a9e5ddae3357302791432fc61d82ff37e4 58c55b06f30014326f27bdf94c406ceee0897731 Improvements and fixes from FR: D-Bus service: added GetSupportedTypes method ace4f31c586641fcf7ad1de165cd7f27b5a371c1 1399b9a84b0d4f4a5015066b0d7cec7e048d59dc From: Paolo Bacchilega <[email protected]>