Index: app/src/common/common.cc
===================================================================
--- app/src/common/common.cc	(revision 0e3df7e06ad71d2e763b970d4420a4374e473cdd)
+++ app/src/common/common.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -195,5 +195,5 @@
 // sprawdza istnienie pliku
 int file_accessible(const char* path) {
-    return access(path, R_OK);
+  return access(path, R_OK);
 }
 
Index: app/src/cor/common_cor.cc
===================================================================
--- app/src/cor/common_cor.cc	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/cor/common_cor.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -10,4 +10,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -16,4 +21,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/cor.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
 }
Index: app/src/gue/common_guess.cc
===================================================================
--- app/src/gue/common_guess.cc	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/gue/common_guess.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -16,4 +16,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -22,4 +27,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/lem.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
 
Index: app/src/kor/common_cor.cc
===================================================================
--- app/src/kor/common_cor.cc	(revision b3179eb76e65f846cde4eec832f307990dacf31c)
+++ app/src/kor/common_cor.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -16,4 +16,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -22,4 +27,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/cor.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   
Index: app/src/lem/common_lem.cc
===================================================================
--- app/src/lem/common_lem.cc	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/lem/common_lem.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -11,4 +11,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -17,4 +22,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/lem.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
 }
