install.py

changeset 3751
3b5476d5420c
parent 3724
0848df91249f
child 3758
19866b4e9027
equal deleted inserted replaced
3750:9fbc7bd21765 3751:3b5476d5420c
399 return 399 return
400 400
401 global pyModDir, progLanguages 401 global pyModDir, progLanguages
402 402
403 # Remove the menu entry for Linux systems 403 # Remove the menu entry for Linux systems
404 if sys.platform.startswith("linux"): 404 if sys.platform.startswith("linux") and os.getuid() == 0:
405 for name in ["/usr/share/pixmaps/eric.png", 405 for name in ["/usr/share/pixmaps/eric.png",
406 "/usr/share/applications/eric6.desktop", 406 "/usr/share/applications/eric6.desktop",
407 "/usr/share/appdata/eric6.appdata.xml", 407 "/usr/share/appdata/eric6.appdata.xml",
408 "/usr/share/pixmaps/ericWeb.png", 408 "/usr/share/pixmaps/ericWeb.png",
409 "/usr/share/applications/eric6_webbrowser.desktop"]: 409 "/usr/share/applications/eric6_webbrowser.desktop"]:
696 dst = os.path.normpath( 696 dst = os.path.normpath(
697 os.path.join(distDir, "usr/share/appdata")) 697 os.path.join(distDir, "usr/share/appdata"))
698 if not os.path.exists(dst): 698 if not os.path.exists(dst):
699 os.makedirs(dst) 699 os.makedirs(dst)
700 shutilCopy(os.path.join(sourceDir, "eric6.appdata.xml"), dst) 700 shutilCopy(os.path.join(sourceDir, "eric6.appdata.xml"), dst)
701 else: 701 elif os.getuid() == 0:
702 shutilCopy(os.path.join( 702 shutilCopy(os.path.join(
703 sourceDir, "icons", "default", "eric.png"), 703 sourceDir, "icons", "default", "eric.png"),
704 "/usr/share/pixmaps/eric.png") 704 "/usr/share/pixmaps/eric.png")
705 shutilCopy(os.path.join( 705 shutilCopy(os.path.join(
706 sourceDir, "eric6.desktop"), 706 sourceDir, "eric6.desktop"),

eric ide

mercurial