Re: Re: [PATCH] more GnuPG UI stuff



Am 25.04.03 17:16 schrieb(en) Darko Obradovic:
> stuff... file-roller can't expect a default filetype, and is it possible 
> to determine the archive-type purely from looking at the contents? 
> There's no shebang or identification as I could see when opening the 
> archive with less.

Open a terminal and run the command "file" on the temp file generated by 
balsa... Gnome has similar routines which are really good in guessing the 
file type (see gnome_vfs_get_mime_type_from_file_data()).

> So either it's a bad implementation by file-roller, or balsa should take

IMHO, yes!

> care of preserving the suffix of files, at least those who can't be 
> identified precisely by their content. Shouldn't be that hard to append 
> the suffix to the random string, no?

As soon as I have time, I'll have a look at it...

Cheers, Albrecht.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
        Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]