uninstall.py

branch
5_4_x
changeset 3754
57e71efb769f
parent 3713
cebe99c3ca18
child 3755
ebdce5a693ac
--- a/uninstall.py	Wed Aug 06 18:54:06 2014 +0200
+++ b/uninstall.py	Sat Aug 09 12:23:18 2014 +0200
@@ -89,9 +89,10 @@
     global pyModDir
     
     # Remove the menu entry for Linux systems
-    if sys.platform.startswith("linux"):
+    if sys.platform.startswith("linux") and os.getuid() == 0:
         for name in ["/usr/share/pixmaps/eric.png",
                      "/usr/share/applications/eric5.desktop",
+                     "/usr/share/appdata/eric6.appdata.xml",
                      "/usr/share/pixmaps/ericWeb.png",
                      "/usr/share/applications/eric5_webbrowser.desktop"]:
             if os.path.exists(name):

eric ide

mercurial