scripts/uninstall.py

branch
without_py2_and_pyqt4
changeset 7203
2079ccbfa335
parent 7192
a22eee00b052
child 7211
1c97f3142fa8
equal deleted inserted replaced
7202:d2f2a1fe0129 7203:2079ccbfa335
125 "eric6_tray", "eric6_editor", 125 "eric6_tray", "eric6_editor",
126 "eric6_plugininstall", "eric6_pluginuninstall", 126 "eric6_plugininstall", "eric6_pluginuninstall",
127 "eric6_pluginrepository", "eric6_sqlbrowser", 127 "eric6_pluginrepository", "eric6_sqlbrowser",
128 "eric6_iconeditor", "eric6_snap", "eric6_hexeditor", 128 "eric6_iconeditor", "eric6_snap", "eric6_hexeditor",
129 "eric6_browser", "eric6_shell", 129 "eric6_browser", "eric6_shell",
130 # from Python2 era
131 "eric6_webbrowser",
130 ] 132 ]
131 133
132 try: 134 try:
133 for rem_wname in rem_wnames: 135 for rem_wname in rem_wnames:
134 for rwname in wrapperNames(getConfig('bindir'), rem_wname): 136 for rwname in wrapperNames(getConfig('bindir'), rem_wname):
248 "/usr/share/appdata/eric6.appdata.xml", 250 "/usr/share/appdata/eric6.appdata.xml",
249 "/usr/share/metainfo/eric6.appdata.xml", 251 "/usr/share/metainfo/eric6.appdata.xml",
250 "/usr/share/applications/eric6_browser.desktop", 252 "/usr/share/applications/eric6_browser.desktop",
251 "/usr/share/pixmaps/eric.png", 253 "/usr/share/pixmaps/eric.png",
252 "/usr/share/pixmaps/ericWeb.png", 254 "/usr/share/pixmaps/ericWeb.png",
255 # from Python2 era
256 "/usr/share/applications/eric6_webbrowser.desktop",
253 ]: 257 ]:
254 if os.path.exists(name): 258 if os.path.exists(name):
255 os.remove(name) 259 os.remove(name)
256 elif os.getuid() >= 1000: 260 elif os.getuid() >= 1000:
257 # it is assumed that user ids start at 1000 261 # it is assumed that user ids start at 1000
265 "~/.local/share/appdata/eric6.appdata.xml", 269 "~/.local/share/appdata/eric6.appdata.xml",
266 "~/.local/share/metainfo/eric6.appdata.xml", 270 "~/.local/share/metainfo/eric6.appdata.xml",
267 "~/.local/share/applications/eric6_browser.desktop", 271 "~/.local/share/applications/eric6_browser.desktop",
268 "~/.local/share/pixmaps/eric.png", 272 "~/.local/share/pixmaps/eric.png",
269 "~/.local/share/pixmaps/ericWeb.png", 273 "~/.local/share/pixmaps/ericWeb.png",
274 # from Python2 era
275 "/usr/share/applications/eric6_webbrowser.desktop",
270 ]: 276 ]:
271 path = os.path.expanduser(name) 277 path = os.path.expanduser(name)
272 if os.path.exists(path): 278 if os.path.exists(path):
273 os.remove(path) 279 os.remove(path)
274 280

eric ide

mercurial