Kaydet (Commit) 8bbe0e3a authored tarafından Hakan Dündar's avatar Hakan Dündar

Changes for Flatpak installation support

üst d736ffd5
......@@ -37,6 +37,13 @@ data_files = [
(f"{PREFIX}/bin/", ["integration/system-monitoring-center"])
]
if PREFIX == "/app":
os.rename("/app/share/applications/" + "tr.org.pardus.system-monitoring-center.desktop", "/app/share/icons/hicolor/scalable/actions/" + "tr.org.pardus.pkexec.system-monitoring-center." + "system-monitoring-center.desktop")
os.rename("/app/share/icons/hicolor/scalable/actions/" + "system-monitoring-center.svg", "/app/share/icons/hicolor/scalable/actions/" + "tr.org.pardus.pkexec.system-monitoring-center." + "system-monitoring-center.svg")
icon_list = os.listdir("/app/share/icons/hicolor/scalable/actions/")
for icon in icon_list:
os.rename("/app/share/icons/hicolor/scalable/actions/" + icon, "/app/share/icons/hicolor/scalable/actions/" + "tr.org.pardus.pkexec.system-monitoring-center." + icon)
setup(
name="System Monitoring Center",
version=version,
......
......@@ -118,6 +118,7 @@ def storage_menu_right_click_gui_func():
if disk_path != "-":
if "loop" in disk_name and os.path.isdir("/sys/class/block/" + disk_name + "/loop/") == True: # "Remove" operation ("delete loop" operation for optical disks) for loop (virtual disk) devices (also if they are not partition).
remove_output = (subprocess.check_output(["udisksctl loop-delete -b", disk_path], stderr=subprocess.STDOUT, shell=True)).decode().strip()
storage_disk_action_warning_dialog(remove_output)
return
if "sr" in disk_name: # "Remove" operation ("eject" operation for optical disk disks) for optical disk drives.
remove_output = (subprocess.check_output(["eject", disk_path], stderr=subprocess.STDOUT, shell=True)).decode().strip()
......
......@@ -58,9 +58,4 @@ modules:
sources:
- type: git
url: https://kod.pardus.org.tr/Hakan/system-monitoring-center.git
branch: a768a39fcdf9d8d26c7bafb937ea5b53607dacf3
post-install:
- install -Dm644 icons/apps/system-monitoring-center.svg /app/share/icons/hicolor/scalable/apps/system-monitoring-center.svg
- install -Dm644 integration/tr.org.pardus.system-monitoring-center.desktop /app/share/applications/tr.org.pardus.system-monitoring-center.desktop
- install -Dm644 tr.org.pardus.system-monitoring-center.appdata.xml /app/share/metainfo/tr.org.pardus.system-monitoring-center.appdata.xml
branch: d736ffd5028bbacfdafbe68cee9d332bbad0b063
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment