Hey,
I'm experiencing the same problem. There's no chance to choose the plugin Zip-files with the Calibre-GUI. They're just not shown.
In my case: Archlinux, GNOME3 (with Nautilus file-manager)...
Anyway, thanks for letting us know the alternative commandline way to add plugins...
You can skip this next part, which is just showing two different workarounds
=====
After playing around a little bit with the python-scripts usr/lib/calibre/gui2/dialogs/plugins.py (that's the part of Calibre calling the File Chooser), I found a workaround (actually two

):
1) Change "all_files=False" (line 276) to "all_files=True" - and you'll at least have the possibility to choose "all files" in the file-chooser-dialog and select the "*.zip"-files. Of course, that isn't the nicest workaround.
2) I don't think that this is true:
Quote:
Not much I can do about that, calibre just uses a standard Qt function to open a file chooser dialog. You would have to get Qt to fix whatever the issue with xfce's native file chooser is.
|
Because if I change lines 275-277 from:
Code:
path = choose_files(self, 'add a plugin dialog', _('Add plugin'),
filters=[(_('Plugins') + ' (*.zip)', ['.zip'])], all_files=True,
select_only_single_file=True)
to:
Code:
from PyQt4.Qt import QFileDialog
path = QFileDialog.getOpenFileName(self, 'add a plugin dialog', _('Add plugin'),
(_('Plugins') + ' (*.zip)'));
...it directly calls the QFileDialog instead of the calibre-function "choose_files" (which links to another function and so on) works like charm. It seems to show exactly the same behaviour as it is supposed to.
Therefore, I think that there seems to be a bug somewhere in the Calibre code, but not in the Qt function...
However, my programming skills are yet to limited to find the real source of the problem
here you can go on reading
=====
Allright, I think I found the "ultimate" solution now. The error definitely seems to be in the code in lines 275-277 (I noticed it when comparing that code witht the one from the "add single books"-dialog, which also has an option to only add archives):
Just change this code:
Code:
path = choose_files(self, 'add a plugin dialog', _('Add plugin'),
filters=[(_('Plugins') + ' (*.zip)', ['.zip'])], all_files=True,
select_only_single_file=True)
to this:
Code:
path = choose_files(self, 'add a plugin dialog', _('Add plugin'),
filters=[(_('Plugins'), ['.zip'])], all_files=False,
select_only_single_file=True)
Would be great if that could be put into the next Calibre-Release

(given that my guess was right

).

for this great programme!!!
Regards,
katze_sonne