Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Changes for new version (v2.26.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakandundar34coding committed Oct 31, 2023
1 parent 5dd1e7f commit 698b7b3
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 8 deletions.
9 changes: 9 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# System Monitoring Center

### v2.26.0 (31.10.2023)
* New: Portage package count (System tab)
* Add: Dialog for end of support announcement for SMC v2.x.x
* Disabled GPU usage and GPU memory columns (Processes tab)
* Minor improvements (code, translations, etc.)

### v1.43.12 (17.10.2023)
* Add: Dialog for end of support announcement for SMC v1.x.x

### v2.25.1 (13.10.2023)
* Fix: High memory consumption in some cases (AMD GPUs)
* Disabled external tool usage for video engine load (AMD GPU)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@
</screenshot>
</screenshots>
<releases>
<release version="2.26.0" date="2023-10-31">
<description>
<ul>
<li>New: Portage package count (System tab)</li>
<li>Add: Dialog for end of support announcement for SMC v2.x.x</li>
<li>Disabled GPU usage and GPU memory columns (Processes tab)</li>
<li>Minor improvements (code, translations, etc.)</li>
</ul>
</description>
</release>
<release version="2.25.1" date="2023-10-13">
<description>
<ul>
Expand Down
9 changes: 9 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
system-monitoring-center (2.26.0) unstable; urgency=medium

* New: Portage package count (System tab)
* Add: Dialog for end of support announcement for SMC v2.x.x
* Disabled GPU usage and GPU memory columns (Processes tab)
* Minor improvements (code, translations, etc.)

-- Hakan Dündar <[email protected]> Tue, 31 Oct 2023 10:30:00 +0300

system-monitoring-center (2.25.1) unstable; urgency=medium

* Fix: High memory consumption in some cases (AMD GPUs)
Expand Down
2 changes: 1 addition & 1 deletion io.github.hakandundar34coding.system-monitoring-center.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ modules:
sources:
- type: git
url: https://github.com/hakandundar34coding/system-monitoring-center.git
commit: 99ded81df1d1516f314b93bf21c2eb0912553630
commit: fe0ff5120e2b0475f5219cf9debe7be5cf644863

1 change: 0 additions & 1 deletion src/Common.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ def reset_tab_settings(TabObject):
if len(TabObject.row_data_list) < len(Config.processes_data_column_order):
Config.config_default_processes_func()
Config.config_save_func()
print(1)
elif TabObject.name == "Users":
if len(TabObject.row_data_list) < len(Config.users_data_column_order):
Config.config_default_users_func()
Expand Down
7 changes: 7 additions & 0 deletions src/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def config_default_reset_all_func(self):
Run functions for all default settings.
"""

self.end_of_support_for_v2_dialog_dont_show = 0

self.config_default_general_general_func()
self.config_default_performance_summary_func()
self.config_default_performance_cpu_func()
Expand Down Expand Up @@ -281,6 +283,10 @@ def config_get_values_func(self):
self.summary_show_gpu_usage = float(config_values[config_variables.index("summary_show_gpu_usage")])
else:
pass
if "end_of_support_for_v2_dialog_dont_show" in config_variables:
self.end_of_support_for_v2_dialog_dont_show = int(config_values[config_variables.index("end_of_support_for_v2_dialog_dont_show")])
else:
pass

self.chart_line_color_cpu_percent = [float(value) for value in config_values[config_variables.index("chart_line_color_cpu_percent")].strip("[]").split(", ")]
self.show_cpu_usage_per_core = int(config_values[config_variables.index("show_cpu_usage_per_core")])
Expand Down Expand Up @@ -402,6 +408,7 @@ def config_save_func(self):
config_write_text = config_write_text + "remember_last_selected_hardware = " + str(self.remember_last_selected_hardware) + "\n"
config_write_text = config_write_text + "remember_window_size = " + str(self.remember_window_size) + "\n"
config_write_text = config_write_text + "main_window_opacity = " + str(self.main_window_opacity) + "\n"
config_write_text = config_write_text + "end_of_support_for_v2_dialog_dont_show = " + str(self.end_of_support_for_v2_dialog_dont_show) + "\n"
config_write_text = config_write_text + "\n"

config_write_text = config_write_text + "[Performance Tab - Summary]" + "\n"
Expand Down
10 changes: 5 additions & 5 deletions src/System.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def loop_func(self):
current_gtk_version = Libsysmon.get_current_gtk_version()
current_desktop_environment, current_desktop_environment_version, windowing_system, window_manager, current_display_manager = Libsysmon.get_desktop_environment_and_version_windowing_system_window_manager_display_manager()
# Run this function in a separate thread because it may take a long time (2-3 seconds) to get the information on some systems (such as rpm based systems) and it blocks the GUI during this process if a separate thread is not used.
threading.Thread(target=self.apt_or_rpm_or_pacman_or_apk_packages_count_func, daemon=True).start()
threading.Thread(target=self.system_packages_count_func, daemon=True).start()
threading.Thread(target=self.flatpak_packages_count_func, daemon=True).start()


Expand All @@ -495,7 +495,7 @@ def loop_func(self):
self.computer_name_label.set_label(host_name)
self.architecture_label.set_label(cpu_architecture)
self.number_of_monitors_label.set_label(f'{number_of_monitors}')
#self.system_packages_label.set_label(f'{apt_or_rpm_or_pacman_or_apk_packages_count}')
#self.system_packages_label.set_label(f'{system_packages_count}')
#self.flatpak_packages_label.set_label(f'{flatpak_packages_count}')
self.gtk_version_label.set_label(current_gtk_version)
self.python_version_label.set_label(f'{current_python_version}')
Expand Down Expand Up @@ -582,10 +582,10 @@ def get_computer_hardware_information(self):
GLib.idle_add(self.set_multiple_label_text, label_list, label_data_list)


def apt_or_rpm_or_pacman_or_apk_packages_count_func(self):
apt_or_rpm_or_pacman_or_apk_packages_count = Libsysmon.get_installed_apt_rpm_pacman_apk_packages()
def system_packages_count_func(self):
system_packages_count = Libsysmon.get_installed_system_packages()
# Stop and hide spinner and set label text.
GLib.idle_add(Common.set_label_spinner, self.system_packages_label, self.system_packages_spinner_label, apt_or_rpm_or_pacman_or_apk_packages_count)
GLib.idle_add(Common.set_label_spinner, self.system_packages_label, self.system_packages_spinner_label, system_packages_count)


def flatpak_packages_count_func(self):
Expand Down
2 changes: 1 addition & 1 deletion src/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.25.1
2.26.0

0 comments on commit 698b7b3

Please sign in to comment.