uninstall.py

changeset 3943
37d88bed7bb9
parent 3931
ff8e034662d6
child 3948
6c3720179d6b
--- a/uninstall.py	Tue Nov 25 19:32:33 2014 +0100
+++ b/uninstall.py	Thu Nov 27 19:47:52 2014 +0100
@@ -100,10 +100,6 @@
     
     # Remove the menu entry for Linux systems
     if sys.platform.startswith("linux") and os.getuid() == 0:
-        for name in ["/usr/share/pixmaps/eric.png",
-                     "/usr/share/pixmaps/ericWeb.png"]:
-            if os.path.exists(name):
-                os.remove(name)
         if includePythonVariant:
             marker = PythonMarkers[sys.version_info.major]
         else:
@@ -111,7 +107,9 @@
         for name in ["/usr/share/applications/eric6" + marker + ".desktop",
                      "/usr/share/appdata/eric6" + marker + ".appdata.xml",
                      "/usr/share/applications/eric6_webbrowser" + marker + 
-                     ".desktop"]:
+                     ".desktop",
+                     "/usr/share/pixmaps/eric" + marker + ".png",
+                     "/usr/share/pixmaps/ericWeb" + marker + ".png"]:
             if os.path.exists(name):
                 os.remove(name)
     

eric ide

mercurial