Package: libgwenhywfar
Severity: wishlist
Tags: patch

Hi Martin,

As you should know users sometimes complain about not working chipcard
support in AqBanking, which is caused by the package
libchipcard-libgwenhywfar47-plugins not being installed. Unfortunately
Gwenhywfar/AqBanking doesn't handle this situation properly: It simply displays
an empty log window without any hint. I think the user should be displayed a
hint about what package is missing.

I've worked out a patch which achieves exactly this: It adds the following
error messages to the log window in such situations:

  No plugin found for this device type
  If you're using a Debian/Ubuntu based system please consider to install
  package libchipcard-libgwenhywfar47-plugins

I would be glad if the patch will be accepted in SVN trunk and will be part of
the next release. This would give me the possibility to relax the dependency of
libaqhbci* on libchipcard-libgwenhywfar47-plugins to a "Suggests:" in order to
fix Debian Bug #491970 (http://bugs.debian.org/491970).

Kind regards
  Micha
Index: src/crypttoken/ctplugin.c
===================================================================
--- src/crypttoken/ctplugin.c	(revision 1549)
+++ src/crypttoken/ctplugin.c	(working copy)
@@ -298,7 +298,15 @@
 
   pdl=GWEN_Crypt_Token_PluginManager_GetPluginDescrs(pm, devt);
   if (pdl==NULL) {
-    DBG_INFO(GWEN_LOGDOMAIN, "No plugin descriptions found for this device type");
+    DBG_ERROR(GWEN_LOGDOMAIN, "No plugin descriptions found for this device type");
+    GWEN_Gui_ProgressLog(guiid,
+			 GWEN_LoggerLevel_Error,
+			 I18N("No plugin found for this device type"));
+    GWEN_Gui_ProgressLog(guiid,
+			 GWEN_LoggerLevel_Error,
+			 I18N("If you're using a Debian/Ubuntu based system "
+				"please consider to install package " 
+				LIBCHIPCARD_GWENHYWFAR_PLUGIN_PACKAGE));
     return GWEN_ERROR_NOT_FOUND;
   }
   else {
Index: src/crypttoken/Makefile.am
===================================================================
--- src/crypttoken/Makefile.am	(revision 1549)
+++ src/crypttoken/Makefile.am	(working copy)
@@ -43,6 +43,7 @@
   ct_keyinfo.c \
   ctplugin.c
 
+DEFS += -DLIBCHIPCARD_GWENHYWFAR_PLUGIN_PACKAGE=\"libchipcard-libgwenhyw...@gwenhywfar_so_effective@-plugins\"
 
 types: $(typefiles)
 	typemaker -d GWENHYWFAR_API $(typefiles)

Reply via email to