#11 add app launcher

Unito
alimiracle ha unito 2 commit da hayderctee/master a alimiracle/master 2 anni fa
6 ha cambiato i file con 235 aggiunte e 4 eliminazioni
  1. 5 0
      install.sh
  2. 11 0
      ucleaner.desktop
  3. BIN
      ucleaner.png
  4. 206 0
      ucleaner.svg
  5. 9 0
      uninstall.sh
  6. 4 4
      uruk-cleaner

+ 5 - 0
install.sh

@@ -5,6 +5,11 @@ cp org.dbus.ucleaner.service /usr/share/dbus-1/system-services/
 cp dbus.ucleaner /usr/bin/
 cp log-c.sh /usr/bin/
 chmod +x /usr/bin/log-c.sh
+chmod +x /usr/bin/uruk-cleaner
+mkdir /usr/share/uruk-cleaner/
 cp *.glade /usr/share/uruk-cleaner/
 cp *.css /usr/share/uruk-cleaner/
+cp ucleaner.svg /usr/share/uruk-cleaner/
+cp ucleaner.desktop /usr/share/applications/
+echo "done!"
 

+ 11 - 0
ucleaner.desktop

@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Uruk Cleaner
+Name[ar]=منظف النظام
+Comment=Uruk Cleaner
+Comment[ar]=منظف النظام من الملفات الزائدة
+Icon=/usr/share/uruk-cleaner/ucleaner.svg
+Exec=uruk-cleaner
+Terminal=false
+Type=Application
+Categories=System;

BIN
ucleaner.png


File diff suppressed because it is too large
+ 206 - 0
ucleaner.svg


+ 9 - 0
uninstall.sh

@@ -0,0 +1,9 @@
+rm -rf /usr/bin/uruk-cleaner
+rm -rf  /etc/dbus-1/system.d/org.dbus.ucleaner.conf
+rm -rf  /lib/systemd/system/dbus.ucleaner.service
+rm -rf  /usr/share/dbus-1/system-services/org.dbus.ucleaner.service
+rm -rf  /usr/bin/dbus.ucleaner
+rm -rf  /usr/bin/log-c.sh
+rm -rf /usr/share/uruk-cleaner/
+rm -rf /usr/share/applications/ucleaner.desktop
+echo "done!"

+ 4 - 4
uruk-cleaner

@@ -63,7 +63,7 @@ class MessageBox:
     pass
   def __init_builder(self):
 
-    self.gladefile = "messagebox.glade"
+    self.gladefile = "/usr/share/uruk-cleaner/messagebox.glade"
     self.builder = Gtk.Builder()
     try:
 
@@ -84,7 +84,7 @@ class MessageBox:
   def __load_css(self):
     screen = Gdk.Screen.get_default()
     provider = Gtk.CssProvider()
-    provider.load_from_path("messagebox.css")
+    provider.load_from_path("/usr/share/uruk-cleaner/messagebox.css")
     Gtk.StyleContext.add_provider_for_screen(screen, provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
   def ok_btn_click(self, *args):
      self.window.close()
@@ -103,7 +103,7 @@ class GUI:
     provider = Gtk.CssProvider()
     try:
 
-        provider.load_from_path("cleaner.css")
+        provider.load_from_path("/usr/share/uruk-cleaner/cleaner.css")
     except:
         print("Cant find The CSS File", file = sys.stderr)
         exit(1)
@@ -111,7 +111,7 @@ class GUI:
     Gtk.StyleContext.add_provider_for_screen(screen, provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
   def __init_builder(self):
 
-    self.gladefile = "cleaner.glade"
+    self.gladefile = "/usr/share/uruk-cleaner/cleaner.glade"
     self.builder = Gtk.Builder()
     try: