Skip to content

Commit

Permalink
More updates for Flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraust committed Sep 3, 2024
1 parent 96ec4c8 commit 7382363
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
10 changes: 8 additions & 2 deletions OSCRUI/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,14 @@ def init_settings(self):
"""
Prepares settings. Loads stored settings. Saves current settings for next startup.
"""
settings_path = os.path.abspath(self.app_dir + self.config["settings_path"])
self.settings = QSettings(settings_path, QSettings.Format.IniFormat)

# For Windows, Keep the Local settings for now as people are more familiar with that.
if os.name == "nt":
settings_path = os.path.abspath(self.app_dir + self.config["settings_path"])
self.settings = QSettings(settings_path, QSettings.Format.IniFormat)
else:
self.settings = QSettings("OSCR", "OSCR-UI")

for setting, value in self.config['default_settings'].items():
if self.settings.value(setting, None) is None:
self.settings.setValue(setting, value)
Expand Down
16 changes: 11 additions & 5 deletions com.stobuilds.oscr.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
id: com.stobuilds.oscr
runtime: org.freedesktop.Platform
runtime-version: "23.08"
sdk: org.freedesktop.Sdk
runtime: org.kde.Platform
runtime-version: "6.7"
sdk: org.kde.Sdk
command: oscr
finish-args:
- --share=ipc
- --share=network
- --socket=fallback-x11
- --socket=wayland
- --device=dri
modules:
- name: python3
buildsystem: simple
build-commands:
- python3 -m pip install --prefix=/app src/deps/oscr-ui
sources:
- type: git
url: https://github.com/STOCD/OSCR-UI.git
commit: bdde9e46f953004c131d7faae50b57dd91e5d28a
url: https://github.com/Kraust/OSCR-UI.git
commit: 96ec4c80ae6dbba65c720398ee8b5516d4cc5e5d
dest: "src/deps/oscr-ui"
build-options:
build-args:
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Launcher():

version = '2024.08b210'
__version__ = '0.2'
__version__ = '0.4'

# holds the style of the app
theme = {
Expand Down Expand Up @@ -758,7 +758,7 @@ def app_config() -> dict:
'heal_columns|12': True,
'heal_columns_length': 13,
'split_log_after': 480000,
'seconds_between_combats': 100,
'seconds_between_combats': 45,
'excluded_event_ids': ['Autodesc.Combatevent.Falling', ''],
'graph_resolution': 0.2,
'combats_to_parse': 10,
Expand Down

0 comments on commit 7382363

Please sign in to comment.