| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/catfish/files/ |
Upload File : |
--- catfish_lib/catfishconfig.py.orig 2020-01-01 18:29:00 UTC
+++ catfish_lib/catfishconfig.py
@@ -17,6 +17,7 @@
# with this program. If not, see <https://www.gnu.org/licenses/>.
import os
+import sys
__all__ = [
'project_path_not_found',
@@ -29,7 +30,10 @@ __all__ = [
# files). By default, this is ../data, relative your trunk layout
__catfish_data_directory__ = '../data/'
# Location of locate.db file
-__locate_db_path__ = '/var/lib/mlocate/mlocate.db'
+if sys.platform.startswith('linux'):
+ __locate_db_path__ = '/var/lib/mlocate/mlocate.db'
+elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'):
+ __locate_db_path__ = '/var/db/locate.database'
__license__ = 'GPL-2+'
__version__ = '1.4.12'
__url__ = 'https://docs.xfce.org/apps/catfish/start'