Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1.3 KiB

diff -Naur CompuCell3D-4.1.1.orig/cc3d/core/DefaultSettingsData.py CompuCell3D-4.1.1/cc3d/core/DefaultSettingsData.py
--- CompuCell3D-4.1.1.orig/cc3d/core/DefaultSettingsData.py 2020-01-19 01:14:59.000000000 +0000
+++ CompuCell3D-4.1.1/cc3d/core/DefaultSettingsData.py 2020-04-30 20:53:25.540456846 +0100
@@ -2,4 +2,4 @@
encodes location and the name of the setting file. Global settings will be stored in
<home_directory>/.SETTINGS_FOLDER
"""
-(SETTINGS_FOLDER, SETTINGS_FILE_NAME) = ('.compucell3d_py3', '_settings.sqlite',)
+(SETTINGS_FOLDER, SETTINGS_FILE_NAME) = ('cc3d', '_settings.sqlite',)
diff -Naur CompuCell3D-4.1.1.orig/cc3d/player5/Configuration/SettingUtils.py CompuCell3D-4.1.1/cc3d/player5/Configuration/SettingUtils.py
--- CompuCell3D-4.1.1.orig/cc3d/player5/Configuration/SettingUtils.py 2020-01-19 01:14:59.000000000 +0000
+++ CompuCell3D-4.1.1/cc3d/player5/Configuration/SettingUtils.py 2020-04-30 20:53:07.859188442 +0100
@@ -79,7 +79,7 @@
returns path to the directory wit global settings
:return: {str}
"""
- global_setting_dir = os.path.abspath(os.path.join(os.path.expanduser('~'), SETTINGS_FOLDER))
+ global_setting_dir = os.path.abspath(os.path.join(os.getenv('XDG_CONFIG_HOME'), SETTINGS_FOLDER))
return global_setting_dir