File nitroshare-fix-caja.patch of Package nitroshare

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -239,6 +239,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 
     # Configure and install Python extensions for Nautilus-derived file managers
     foreach(_file_manager Nautilus Nemo Caja)
+        if(${_file_manager} MATCHES "Caja")
+            set(_file_manager_ver "2.0")
+        else()
+            set(_file_manager_ver "3.0")
+        endif()
         string(TOLOWER ${_file_manager} _file_manager_lower)
         set(_py_filename "${CMAKE_CURRENT_BINARY_DIR}/dist/nitroshare_${_file_manager_lower}.py")
         configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dist/nitroshare.py.in" "${_py_filename}")
--- a/src/dist/nitroshare.py.in
+++ b/src/dist/nitroshare.py.in
@@ -32,7 +32,7 @@ from urlparse import urlparse
 
 import gi
 gi.require_version('Gtk', '3.0')
-gi.require_version('${_file_manager}', '3.0')
+gi.require_version('${_file_manager}', '${_file_manager_ver}')
 
 from gi.repository import ${_file_manager}, GObject, Gtk
 from requests import ConnectionError, post