src/eric7/Tools/TrayStarter.py

branch
eric7
changeset 9377
b9c8dc3b7da1
parent 9221
bf71ee032bb4
child 9413
80c06d472826
equal deleted inserted replaced
9376:e143a7e7254b 9377:b9c8dc3b7da1
23 import UI.PixmapCache 23 import UI.PixmapCache
24 from UI.Info import Version, Program 24 from UI.Info import Version, Program
25 25
26 import Utilities 26 import Utilities
27 import Preferences 27 import Preferences
28
29 from eric7config import getConfig
30 28
31 29
32 class TrayStarter(QSystemTrayIcon): 30 class TrayStarter(QSystemTrayIcon):
33 """ 31 """
34 Class implementing a starter for the system tray. 32 Class implementing a starter for the system tray.
301 299
302 @param applName name of the eric application script (string) 300 @param applName name of the eric application script (string)
303 @param *applArgs variable list of application arguments 301 @param *applArgs variable list of application arguments
304 """ 302 """
305 proc = QProcess() 303 proc = QProcess()
306 applPath = os.path.join(getConfig("ericDir"), applName) 304 applPath = os.path.join(os.path.dirname(__file__), "..", applName)
307 305
308 args = [] 306 args = []
309 args.append(applPath) 307 args.append(applPath)
310 args.append("--config={0}".format(Utilities.getConfigDir())) 308 args.append("--config={0}".format(Utilities.getConfigDir()))
311 if self.settingsDir: 309 if self.settingsDir:
334 332
335 def __startEric(self): 333 def __startEric(self):
336 """ 334 """
337 Private slot to start the eric IDE. 335 Private slot to start the eric IDE.
338 """ 336 """
339 self.__startProc("eric7.py") 337 self.__startProc("eric7_ide.py")
340 338
341 def __startPreferences(self): 339 def __startPreferences(self):
342 """ 340 """
343 Private slot to start the eric configuration dialog. 341 Private slot to start the eric configuration dialog.
344 """ 342 """
528 526
529 @param act reference to the action that triggered (QAction) 527 @param act reference to the action that triggered (QAction)
530 """ 528 """
531 filename = act.data() 529 filename = act.data()
532 if filename: 530 if filename:
533 self.__startProc("eric7.py", filename) 531 self.__startProc("eric7_ide.py", filename)
534 532
535 def __showPreferences(self): 533 def __showPreferences(self):
536 """ 534 """
537 Private slot to set the preferences. 535 Private slot to set the preferences.
538 """ 536 """

eric ide

mercurial