uninstall.py

changeset 3751
3b5476d5420c
parent 3714
4080395e3426
child 3758
19866b4e9027
--- a/uninstall.py	Wed Aug 06 18:54:06 2014 +0200
+++ b/uninstall.py	Sat Aug 09 12:23:18 2014 +0200
@@ -99,9 +99,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/eric6.desktop",
+                     "/usr/share/appdata/eric6.appdata.xml",
                      "/usr/share/pixmaps/ericWeb.png",
                      "/usr/share/applications/eric6_webbrowser.desktop"]:
             if os.path.exists(name):

eric ide

mercurial