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

Commit

Permalink
Updated version file and minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hakandundar34coding committed Apr 9, 2022
1 parent 45dbc75 commit a730ac3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# System Monitoring Center

### v1.10.1
### v1.10.2
* Improved: Getting ARM CPU model names
* Improved: Device vendor-model detection
* Fix: Detect window manager of GNOME DE
Expand Down
11 changes: 8 additions & 3 deletions src/MainGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ def main_gui_application_system_integration_func(self):
# This file is used for checking if symlinks are copied before.
file_to_check_if_generated = current_user_homedir + "/.local/share/applications/com.github.hakand34.system-monitoring-center.desktop"

# Get icon list.
icon_list = os.listdir(current_dir + "/../icons/hicolor/scalable/actions")

# Called for removing files.
def remove_file(file):
try:
Expand Down Expand Up @@ -521,7 +524,8 @@ def generate_symlink(source, target):
remove_file(current_user_homedir + "/.local/share/applications/com.github.hakand34.system-monitoring-center.desktop")
remove_file(current_user_homedir + "/.local/share/icons/hicolor/scalable/apps/system-monitoring-center.svg")
for file in os.listdir(current_user_homedir + "/.local/share/icons/hicolor/scalable/actions"):
remove_file(file)
if file in icon_list:
remove_file(file)

# Check if symlinks are not copied before.
if os.path.isfile(file_to_check_if_generated) == False:
Expand All @@ -531,7 +535,8 @@ def generate_symlink(source, target):
remove_file(current_user_homedir + "/.local/share/icons/hicolor/scalable/apps/system-monitoring-center.svg")
try:
for file in os.listdir(current_user_homedir + "/.local/share/icons/hicolor/scalable/actions"):
remove_file(current_user_homedir + "/.local/share/icons/hicolor/scalable/actions/" + file)
if file in icon_list:
remove_file(current_user_homedir + "/.local/share/icons/hicolor/scalable/actions/" + file)
except Exception:
pass

Expand All @@ -544,7 +549,7 @@ def generate_symlink(source, target):
generate_symlink(current_dir + "/../applications/com.github.hakand34.system-monitoring-center.desktop", current_user_homedir + "/.local/share/applications/com.github.hakand34.system-monitoring-center.desktop")
generate_symlink(current_dir + "/../icons/hicolor/scalable/apps/system-monitoring-center.svg", current_user_homedir + "/.local/share/icons/hicolor/scalable/apps/system-monitoring-center.svg")
target_path = current_user_homedir + "/.local/share/icons/hicolor/scalable/actions"
for file in os.listdir(current_dir + "/../icons/hicolor/scalable/actions"):
for file in icon_list:
generate_symlink(current_dir + "/../icons/hicolor/scalable/actions/" + file, target_path + "/" + file)


Expand Down
2 changes: 1 addition & 1 deletion src/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.1
1.10.2

0 comments on commit a730ac3

Please sign in to comment.