i recently downloaded a password protected .rar file, and i could browse the content in squeeze (latest svn, 25325) but when i tried to open a file from that archive within squeeze, it segfaulted. when i tried to extract the archive with the t-a-p, the new directory was created, but then squeeze died again. there should be a dialog that asks for the password when extracting a file, with a checkbox to use that password for all files from that archive. the password should be saved during the whole squeeze session, individually for each archive, as you might have more than one protected archive opened in tabs, so you don't have to retype the password again, when you open another file from within squeeze. of course the password should only be saved, if it was correct. if it wasn't, you should be asked another password. this password dialog must of course also pop up, when using the -e switch, while it can be integrated into the extract dialog, when using the -x switch. when you successfully opened a file in a session from within squeeze, then the correct password should already be pre-entered in the extract dialog, when the user opens it afterwards. and a little lock icon in the lower right corner of the status bar of squeeze's main window should be shown, if the password is protected. those are all the neccessary gui parts, i can think of atm for protected archives, but of course i might have missed some things ;)
Thanks for the report, i kind of have forgotten about that. Could you attach a backtrace? Because squeeze should report an error instead of doing a segfault. One thing though, of which i am uncertain, different files inside a single archive can be protected with a different password. How to handle that?
Opened encrypted .rar, it showed the filelist as expected but when trying to extract it I got -> ** (squeeze:17844): DEBUG: /home/drac/pictures ** (squeeze:17844): DEBUG: application/x-rar ** (squeeze:17844): DEBUG: executing: unrar v '/home/drac/pictures/projekti.rar' (squeeze:17844): GLib-CRITICAL **: g_io_channel_read_line: assertion `str_return != NULL' failed (squeeze:17844): GLib-CRITICAL **: g_io_channel_read_line: assertion `str_return != NULL' failed ** (squeeze:17844): DEBUG: COMMAND TERMINATED ** (squeeze:17844): DEBUG: executing: unrar x -y '/home/drac/pictures/projekti.rar' 'projekti.png' /home/drac/pictures/projekti ** (squeeze:17844): DEBUG: file clicked And notice that filetype is not supported or sth After trying a second time extracting it, the notice didn't show up anymore. It only created the empty directory I was supposed to extract it to. But no segfault. This is r25330
you're right, it doesn't segfault here aswell. sorry for the wrong information.
Created attachment 1068 drac's back-trace of segfault (yay)
I have added a 'progress' dialog to rev 25359. (it is only used with extract for now, but could also be used for add).
Changed summary, critical warnings are solved. issue that remains is that password-protected archives are not supported at all.
Password support will not be implemented for now. There is not enough support for this in either libsqueeze or the user interface. We will look into this for squeeze version 0.3
Password support should be also for new archives, not only extracting existing ones. Also, it should be able to "update" archive with password, no other changes (no adding/removing files, etc).
squeeze is not maintained anymore, closing.