The chdir calls would make the latex write try to write to /usr/bin or
something.

--- pycocuma-0.4.5-6.orig/pycocumalib/CalendarWindow.py
+++ pycocuma-0.4.5-6/pycocumalib/CalendarWindow.py
@@ -64,7 +64,7 @@
         top.title('Calendar')
         top.iconname('PyCoCuMa')
         try:
-            os.chdir(os.path.dirname(sys.argv[0]))
+            #os.chdir(os.path.dirname(sys.argv[0]))
             if sys.platform == "win32":
                 top.iconbitmap("pycocuma.ico")
             else:
--- pycocuma-0.4.5-6.orig/pycocumalib/MainView.py
+++ pycocuma-0.4.5-6/pycocumalib/MainView.py
@@ -200,7 +200,7 @@
         top.title('PyCoCuMa %s' % self.__version)
         top.iconname('PyCoCuMa')
         try:
-            os.chdir(os.path.dirname(sys.argv[0]))
+            #os.chdir(os.path.dirname(sys.argv[0]))
             if sys.platform == "win32":
                 top.iconbitmap("pycocuma.ico")
             else:
--- pycocuma-0.4.5-6.orig/pycocumalib/JournalWindow.py
+++ pycocuma-0.4.5-6/pycocumalib/JournalWindow.py
@@ -63,7 +63,7 @@
         top.title('Journal')
         top.iconname('PyCoCuMa')
         try:
-            os.chdir(os.path.dirname(sys.argv[0]))
+            #os.chdir(os.path.dirname(sys.argv[0]))
             if sys.platform == "win32":
                 top.iconbitmap("pycocuma.ico")
             else:
--- pycocuma-0.4.5-6.orig/pycocumalib/QuickFinder.py
+++ pycocuma-0.4.5-6/pycocumalib/QuickFinder.py
@@ -96,7 +96,7 @@
         top.title('PyCoCuMa %s' % self.__version)
         top.iconname('PyCoCuMa')
         try:
-            os.chdir(os.path.dirname(sys.argv[0]))
+            #os.chdir(os.path.dirname(sys.argv[0]))
             if sys.platform == "win32":
                 top.iconbitmap("pycocuma.ico")
             else:
