Aquileo | Recent changes to patcheshttps://sourceforge.net/p/xarchiver/patches/2016-10-15T19:23:18.022000ZRecent changes to patchesAquileo | #27 shell script to detect .7z encryption2016-10-15T19:23:18.022000Z2016-10-15T19:23:18.022000Zbeelzebubbiehttps://sourceforge.net/u/beelzebubbie/https://sourceforge.net9cef2b7ddb2bd974de68f81eeef2b76763756c4a<div class="markdown_content"><p>Hope I solve buffering ambiguity soon and update the script accordingly.<br/> About improving – seems the only way to really improve something is to switch to libarchive. But before we need to design a good abstraction layer above it.</p> <p>Btw, who is Ettore? :-) </p></div>Aquileo | #27 shell script to detect .7z encryption2016-10-15T18:25:37.100000Z2016-10-15T18:25:37.100000Zbeelzebubbiehttps://sourceforge.net/u/beelzebubbie/https://sourceforge.net061c1619aa362a618436653545091c976cb010a3<div class="markdown_content"><p>You're right, the same way as in xa_7zip_extract and sibling functions – construct command string and run command. What else may be expected?</p></div>Aquileo | #27 shell script to detect .7z encryption2016-10-15T17:18:46.961000Z2016-10-15T17:18:46.961000Zbeelzebubbiehttps://sourceforge.net/u/beelzebubbie/https://sourceforge.net546400763053e0ee63be0efd024982db87e8bd5d<div class="markdown_content"><p>/bin/sh detect_7z_encrypt.sh /path/to/detected/7z_binary /path/to/archive</p> <p>exit code: 0 if encrypted, 10 (EXIT_CODE_NOT_ENCRYPTED) if not encrypted, else error (errors aren't expected though)</p> <p>Note that script expects valid .7z archive file as second argument (I see no reason to detect is it .7z file or not because it is already done in your code. Am I right?)</p> <p>There is some «optimisations» done – we are terminating 7z process after successful detection or after listing header is complete (MAX_READ_LINES). Or after READ_TIMEOUT seconds. </p> <p>I've checked script running in bash sh mode and busybox sh. Hope it means enough compatibility level.</p> <p>Also I've checked the earliest 7z version available for me (9.20), listing header format is same as 16.02, though file-roller code seems to expect another header format in addition. Maybe we should investigate it?</p> <p>Right now I haven't implemented forced line-buffering yet, but it will be done soon.</p></div>Aquileo | shell script to detect .7z encryption2016-10-14T15:57:23.360000Z2016-10-14T15:57:23.360000Zbeelzebubbiehttps://sourceforge.net/u/beelzebubbie/https://sourceforge.neteb8c88b53c3c763d90c6c0fe05fb292f4643050d<div class="markdown_content"><p>see DESCRIPTION inside script</p></div>Aquileo | #26 GTK+ 3 support2014-12-24T11:28:01.708000Z2014-12-24T11:28:01.708000ZGiuseppe Torellihttps://sourceforge.net/u/gt67/https://sourceforge.net2a3c189098c5ee76ef519b1f36ef78b623624e49<div class="markdown_content"><p>I'm not going to argue about proprietary and open source. I do not want to add another dependency Gyorgy, sorry.</p> <p>I'm using your patch to have the SVN code use GTK+3 right now.</p> <p>Your patches are welcome, thanks for your time :)</p></div>Aquileo | #26 GTK+ 3 support2014-12-24T11:23:14.572000Z2014-12-24T11:23:14.572000ZGyörgy Ballóhttps://sourceforge.net/u/city-busz/https://sourceforge.netf7bcc00738d6d062dca024ec525d6fcf5697e67f<div class="markdown_content"><p>You can use it also with the bsdtar binary. And the readme file is outdated, it supports writing 7z archives:<br /> <a href="https://code.google.com/p/libarchive/issues/detail?id=41#c9" rel="nofollow">https://code.google.com/p/libarchive/issues/detail?id=41#c9</a></p> <p>RAR is a proprietary format, and no open source tools are available to write into it, so I don't think it's so important.</p> <p>I'm not really interested in a project that doesn't support libarchive/bsdtar.</p></div>Aquileo | #26 GTK+ 3 support2014-12-24T09:13:28.524000Z2014-12-24T09:13:28.524000ZGiuseppe Torellihttps://sourceforge.net/u/gt67/https://sourceforge.netc7376e2317b36fb59e0e6b2c051ba82d5319e463<div class="markdown_content"><p>Because I would add another dependency. Also libarchive can't write RAR and 7Z:</p> <p>rar (read only, starting in libarchive 3.0)<br /> 7-Zip (read only, starting in libarchive 3.0)</p> <p>Did I convince you to concentrate your efforts on the faster and better SVN code?</p></div>Aquileo | #26 GTK+ 3 support2014-12-24T02:21:50.199000Z2014-12-24T02:21:50.199000ZGyörgy Ballóhttps://sourceforge.net/u/city-busz/https://sourceforge.netc40e350dda4aa4c55dd0a0bd66cf7124aaaf5960<div class="markdown_content"><p>Why don't you just use libarchive as backend? It could able to read and write into many archive formats, so you don't have to deal with each command line extraction program.<br /> <a href="http://libarchive.org" rel="nofollow">http://libarchive.org/</a></p></div>Aquileo | #26 GTK+ 3 support2014-12-23T20:42:57.914000Z2014-12-23T20:42:57.914000ZGiuseppe Torellihttps://sourceforge.net/u/gt67/https://sourceforge.net172880a199e3fd1c0924a7024a53ccbe604430f6<div class="markdown_content"><p>That's why is better to concentrate the efforts on one code. The one on the SVN can be ported to GTK+3 and forget about GTK+2 as it's undeveloped. This branch, 0.5.4 is buggy and slow. Try to open a 180MB zip file with both version. The SVN one open it instantly, the 0.5.4 freezes the GUI.</p> <p>If you want I can port the SVN code o GTK+3 and get rid of all the deprecated API, in the meantime you could take care of completing the ZIP module by allowing it to allow add,test and dnd. Most of the code can be reused from this branch to do that. Look at the new extract dialog... does it sound tantalizing?</p></div>Aquileo | #26 GTK+ 3 support2014-12-23T20:33:53.088000Z2014-12-23T20:33:53.088000ZGyörgy Ballóhttps://sourceforge.net/u/city-busz/https://sourceforge.net515c527046ac4111884d3067a05e9b25ea7fead7<div class="markdown_content"><p>Those deprecations are already there in the current code. I fixed all of them that affects the GTK+ 2 version. So if you build Xarchiver with '--disable-gtk3' configure flag, you won't see any of those messages. If you want to remove the rest of the deprecations introduced in GTK+ 3, then it breaks GTK+ 2 compatibility.</p> <p>Note that all GTK+ based software uses deprecated API, because they changes the API every half a year. So you can't make your application compatible with multiple GTK+ versions and fix all deprecations at the same time, because the code would be unmaintainable due to many conditional code.</p></div>