Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
System Monitoring Center
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Kayıtlar (commit)
Kenar çubuğunu aç
Hakan Dündar
System Monitoring Center
Commits
8bbe0e3a
Kaydet (Commit)
8bbe0e3a
authored
Eki 18, 2021
tarafından
Hakan Dündar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changes for Flatpak installation support
üst
d736ffd5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
setup.py
setup.py
+7
-0
StorageMenuRightClick.py
src/StorageMenuRightClick.py
+1
-0
tr.org.pardus.system-monitoring-center.yml
tr.org.pardus.system-monitoring-center.yml
+1
-6
No files found.
setup.py
Dosyayı görüntüle @
8bbe0e3a
...
...
@@ -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
,
...
...
src/StorageMenuRightClick.py
Dosyayı görüntüle @
8bbe0e3a
...
...
@@ -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
()
...
...
tr.org.pardus.system-monitoring-center.yml
Dosyayı görüntüle @
8bbe0e3a
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment